IdentityModel / oidc-client-js

OpenID Connect (OIDC) and OAuth2 protocol support for browser-based JavaScript applications
Apache License 2.0
2.43k stars 840 forks source link

Is it possible to pass FederationMetadata.xml to the metadata object? #1306

Closed TophyP closed 3 years ago

TophyP commented 3 years ago

Hi everyone,

We're currently using perarnborg's vuex-oidc wrapper and we're wondering if it's possible to pass the FederationMetadata.xml to the object.

Here's our current config.

authority: OUR_AUTHORITY,
client_id: CLIENT_ID,
redirect_uri: REDIRECT_URI,
client_secret: CLIENT_SECRET
response_type: 'id_token',
scope: 'openid profile',
loadUserInfo: true,
metadata: {
    issuer: ISSUER,
    authorization_endpoint: AUTH_ENDPOINT
}

Initially we thought that the client ID and secret would be enough but I think our ADFS authority requires us to pass the FederationMetadata.xml as well.

Thanks.

brockallen commented 3 years ago

FederationMetadata.xml is a SAML or WS-FED thing, not OIDC.