Skip to content

Commit

Permalink
Add OIDC surfcontext
Browse files Browse the repository at this point in the history
  • Loading branch information
JoepdeJong committed Aug 11, 2023
1 parent 5fca40a commit c795ba2
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions sample/authui-firebaseui/src/script.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import '../node_modules/firebaseui/dist/firebaseui.css';
import '../public/style.css';

// Import Firebase dependencies.
import {GoogleAuthProvider, OAuthProvider} from 'firebase/auth';
import {GoogleAuthProvider} from 'firebase/auth';

// Import FirebaseUI dependencies.
import * as firebaseui from 'firebaseui';
Expand All @@ -33,8 +33,6 @@ function isSafari(): boolean {
userAgent.indexOf('android/') === -1;
}

const surfconnext = new OAuthProvider('oidc.connect2');

// The list of UI configs for each supported tenant.
const tenantsConfig = {
// Project level IdPs flow.
Expand All @@ -50,7 +48,9 @@ const tenantsConfig = {
'surf-test-xsc4d': {
displayName: "W.I.S.V. 'Christiaan Huygens' SSO TU Delft Login",
signInOptions: [
surfconnext.PROVIDER_ID,
{
provider: 'oidc.surfconext'
}
],
// Do not trigger immediate redirect in Safari without some user
// interaction.
Expand Down

0 comments on commit c795ba2

Please sign in to comment.