Skip to content
This repository has been archived by the owner on Apr 17, 2023. It is now read-only.

Commit

Permalink
Merge pull request #125 from ciaranRoche/fix-auth
Browse files Browse the repository at this point in the history
Fix - auth constructor config
  • Loading branch information
wtrocki authored Jun 8, 2018
2 parents 36bcf1a + 1a93436 commit c835bab
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/auth/src/Auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,9 @@ export class Auth {
const serviceConfiguration: ServiceConfiguration = configuration[0];
this.internalConfig = serviceConfiguration.config;
// create a resource field containing the clientID. The keycloak JS adapter expects a clientId.
this.internalConfig.clientId = this.internalConfig.resource;
if (!this.internalConfig.clientId) {
this.internalConfig.clientId = this.internalConfig.resource;
}
// use the top level keycloak url in the mobile services json
this.internalConfig.url = serviceConfiguration.url;
}
Expand Down

0 comments on commit c835bab

Please sign in to comment.