Skip to content

Commit

Permalink
IssuerUrl is not set for iOS case during intitalize (iTwin#1350)
Browse files Browse the repository at this point in the history
* issuer url missing or not set when init is called
* fix scope for display test app

Co-authored-by: Affan Khan <[email protected]>
  • Loading branch information
khanaffan and khanaffan authored May 12, 2021
1 parent 0464022 commit d8f95e0
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"changes": [
{
"packageName": "@bentley/mobile-manager",
"comment": "set issuerurl correctly before calling authInit()",
"type": "none"
}
],
"packageName": "@bentley/mobile-manager",
"email": "[email protected]"
}
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export class MobileAuthorizationBackend extends NativeAppAuthorizationBackend {

return new Promise<void>((resolve, reject) => {
assert(this.config !== undefined);
MobileHost.device.authInit(this.getClientRequestContext(), this.config, (err?: string) => {
MobileHost.device.authInit(this.getClientRequestContext(), { ...this.config, issuerUrl: this.issuerUrl }, (err?: string) => {
if (!err) {
resolve();
} else {
Expand Down
2 changes: 1 addition & 1 deletion test-apps/display-test-app/src/backend/MobileMain.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const dtaMobileMain = (async () => {
authConfig: {
clientId: "imodeljs-electron-test",
redirectUri: "imodeljs://app/signin-callback",
scope: "openid email profile organization imodelhub context-registry-service:read-only reality-data:read product-settings-service projectwise-share urlps-third-party imodel-extension-service-api imodeljs-router offline_access",
scope: "openid email profile organization imodelhub context-registry-service:read-only reality-data:read product-settings-service projectwise-share urlps-third-party imodel-extension-service-api offline_access",
},
rpcInterfaces: getRpcInterfaces(),
},
Expand Down

0 comments on commit d8f95e0

Please sign in to comment.