Warning |
---|
HUOM HUOM!! Tämä sivu on piilotettu toistaseksi julkisista, muuta julkiseksi kun valmis |
Table of Contents | ||||
---|---|---|---|---|
|
Pre-requisites
A person or company (the “Principal”) has created an authorisation at Suomi.fi, granting the User (the “Delegate”) ability to do something.
The User has signed in to your Service using OIDC. You have their access token.
...
Use the URL https://id.example.com/api/suomi.fi/valtuudet/ypa
, otherwise works the same as above.
Simple example
Paste code macro | ||||
---|---|---|---|---|
| ||||
<!DOCTYPE html> <html> <head> <meta charset="ISO-8859-1"> <title>Authorisations example</title> </head> <body> <h1>Authorisations example</h1> <p>Click one of the below buttons to continue.</p> <form action="https://id.example.com/api/suomi.fi/valtuudet/hpa" method="post"> <input type="hidden" name="access_token" value="pctOdyzJxIn1jrfg368Gy8Ln1nmVyxyu9"> <input type="hidden" name="successRedirectUri" value="https://example.com/hpa_success" > <input type="hidden" name="failureRedirectUri" value="https://example.com/hpa_failure" > <input type="submit" value="Henkilön puolesta asiointi"> </form> <form action="https://id.example.com/api/suomi.fi/valtuudet/ypa" method="post"> <input type="hidden" name="access_token" value="pctOdyzJxIn1jrfg368Gy8Ln1nmVyxyu9"> <input type="hidden" name="successRedirectUri" value="https://example.com/ypa_success" > <input type="hidden" name="failureRedirectUri" value="https://example.com/ypa_failure" > <input type="submit" value="Yrityksen puolesta asiointi"> </form> </body> </html> |
Have the User activate the buttons in their web browser
...
They will be redirected to the ID service where they will see another confirmation dialog. [WHY????]
Finally they will be redirected to the success URL.
...