-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
21 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -98,6 +98,27 @@ receiver and the custom implementation at the host institution? | |
introspection? | ||
- [Here is a nice explanation of how OpenID connect works](https://yasasramanayaka.medium.com/openid-connect-authorization-code-flow-8c02081135fc). | ||
- The OpenID Connect flow is projected on the euroteq usecase [in this diagram](./openidconnect.md) | ||
- How do I do introspection? | ||
- In Ccurl: `curl -k -u RS-Client-ID:RS-CLIENT-Secret -H 'Content-Type: application/x-www-form-urlencoded' -X POST --data 'token=eyJhbGciOiJFUzI1NiIsImtpZCI6Ik1sVm9jb...' https://proxy.prod.erasmus.eduteams.org/OIDC/introspect -q | jq` | ||
- Example Response: | ||
``` | ||
{ | ||
"active": true, | ||
"scope": "openid email schac_personal_unique_code institutuin.tld/persons institutuin.tld/persons", | ||
"client_id": "APP-02BDEC4A-6B0D-4488-8932-4E92A8A80F71", | ||
"exp": 1730715844, | ||
"iat": 1730712244, | ||
"sub": "[email protected]", | ||
"iss": "https://proxy.prod.erasmus.eduteams.org", | ||
"token_type": "Bearer", | ||
"aud": [ | ||
"APP-02BDEC4A-6B0D-4488-8932-4E92A8A80F71" | ||
], | ||
"email": "[email protected]" | ||
} | ||
``` | ||
- In the response validate `"active": true` the scopes for your institution are present. In the example `institutuin.tld/persons` and `institutuin.tld/persons` | ||
- Use the email to look up your user | ||
|
||
## Testing | ||
|
||
|