Skip to content

Commit

Permalink
Merge branch 'master' into add-orgs-api-links
Browse files Browse the repository at this point in the history
  • Loading branch information
lbalmaceda authored Apr 9, 2021
2 parents d0c797f + 8d5fe1a commit db192d6
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -305,13 +305,14 @@ String url = auth.authorizeUrl("https://me.auth0.com/callback")
.build();
```

> When logging into an organization, it is important to ensure the `org_id` claim of the ID Token matches the expected organization value. The `IdTokenVerifier` can be configured with an expected `org_id` claim value:
>```java
>IdTokenVerifier.init("{ISSUER}", "{AUDIENCE}", signatureVerifier)
> .withOrganization("{ORG_ID}")
> .build()
> .verify(jwt);
>```
**Important!** When logging into an organization, it is important to ensure the `org_id` claim of the ID Token matches the expected organization value. The `IdTokenVerifier` can be configured with an expected `org_id` claim value, as the example below demonstrates.
For more information, please read [Work with Tokens and Organizations](https://auth0.com/docs/organizations/using-tokens) on Auth0 Docs.
```java
IdTokenVerifier.init("{ISSUER}", "{AUDIENCE}", signatureVerifier)
.withOrganization("{ORG_ID}")
.build()
.verify(jwt);
```

### Accept user invitations

Expand Down

0 comments on commit db192d6

Please sign in to comment.