wrobins / cordova-plugin-msal

Use the newest Microsoft MSAL library in your Cordova-based project!
Apache License 2.0
23 stars 63 forks source link

Dynamic Tenant ID #55

Closed bolivir closed 2 years ago

bolivir commented 3 years ago

Is there any to use an dynamic tenant ID? As far as i have seen in the code the tenant id will always be from the package.json config and cannot be set on init.

The problem: Our app gets used by different companies, those can enable azure login where they provide the tenant id. So we dont know the tenant id before and therefore we need to set it in the code behind.

I modified the MsalPlugin to check for an tenant id in the authorities and use that if specified otherwise use the config tenant id (Which in my case would be common because its not specified).

If you see any added value in this feature, let me know and i will open an PR for it.

sebo-o commented 3 years ago

I would very well be interested as I need a dynamic tenant ID and client ID. Please open a PR and share your code. Thank you!

Jetro223 commented 3 years ago

I have the same scenario - a PR would be great.

Aston13 commented 3 years ago

I also have the same issue

ronakpatel17 commented 2 years ago

@bolivir I also have the same scenario. Can you please add a PR or provide changes done by you for this. Thank you in advance!

swathi2378 commented 2 years ago

@bolivir I have the same scenario. Could you please provide the changes need to implement