Skip to content

Commit

Permalink
docs(scoping): fix for example
Browse files Browse the repository at this point in the history
  • Loading branch information
Rob Gijsens committed Nov 20, 2020
1 parent c5ceaca commit c42a8c9
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 12 deletions.
22 changes: 12 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -137,16 +137,18 @@ type Profile = {
* `scoping`: An optional configuration which implements the functionality [explained in the SAML spec paragraph "3.4.1.2 Element <Scoping>"](https://docs.oasis-open.org/security/saml/v2.0/saml-core-2.0-os.pdf). The config object is structured as following:
```javascript
{
idpList: { // optional
entries: [ // required
{
providerId: 'yourProviderId', // required for each entry
name: 'yourName', // optional
loc: 'yourLoc', // optional
}
],
getComplete: 'URI to your complete IDP list', // optional
},
idpList: [ // optional
{
entries: [ // required
{
providerId: 'yourProviderId', // required for each entry
name: 'yourName', // optional
loc: 'yourLoc', // optional
}
],
getComplete: 'URI to your complete IDP list', // optional
},
],
proxyCount: 2, // optional
requesterId: 'requesterId', // optional
}
Expand Down
4 changes: 2 additions & 2 deletions src/passport-saml/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ export interface SamlConfig {
}

export interface SamlScopingConfig {
idpList: SamlIDPListConfig[];
idpList?: SamlIDPListConfig[];
proxyCount?: number;
requesterId?: string[];
}
Expand Down Expand Up @@ -129,7 +129,7 @@ export type Profile = {
samlLogoutRequest: any;
user?: Profile
}

export type VerifiedCallback = (err: Error | null, user?: Record<string, unknown>, info?: Record<string, unknown>) => void;

export type VerifyWithRequest = (req: express.Request, profile: Profile | null | undefined, done: VerifiedCallback) => void;
Expand Down

0 comments on commit c42a8c9

Please sign in to comment.