Skip to content

Commit

Permalink
Add resourceUrl empty example
Browse files Browse the repository at this point in the history
  • Loading branch information
moberwasserlechner committed Aug 27, 2020
1 parent ae758af commit cee8e03
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,14 @@ These parameters are:

e.g.

1)
If `responseType=code`, `pkceDisable=true` and `accessTokenEndpoint` is missing the `authorizationCode` will be resolve along with the whole authorization response.
This only works for the Web and Android. On iOS the used lib does not allows to cancel after the authorization request see #13.

2)
If you just need the `id_token` JWT you have to set `accessTokenEndpoint` and `resourceUrl` to `null`.


### Tested / working flows

These flows are already working and were tested by me.
Expand Down Expand Up @@ -466,7 +471,7 @@ The plugin requires `authorizationBaseUrl` as it triggers the native support and
`appId` is required as well for internal, generic reasons and any not blank value is fine.

It is also possible to control the scope although Apple only supports `email` and/or `fullName`. Add `siwaUseScope: true` to the ios block
and then you can use `scope: "fullName"`, `scope: "email"` or both but the latter is the default one if `siwaUseScope` is not set or false.
and then you can use `scope: "fullName"`, `scope: "email"` or both but the latter is the default one if `siwaUseScope` is not set or false.

```typescript
appleLogin() {
Expand Down Expand Up @@ -570,7 +575,7 @@ azureLogin() {
accessTokenEndpoint: "https://tenantb2c.b2clogin.com/tfp/tenantb2c.onmicrosoft.com/B2C_1_SignUpAndSignIn/oauth2/v2.0/token",
}
});
}
}
```

```typescript
Expand Down

0 comments on commit cee8e03

Please sign in to comment.