Skip to content
This repository was archived by the owner on Jun 12, 2024. It is now read-only.
This repository was archived by the owner on Jun 12, 2024. It is now read-only.

localhost:4200 got ClientConfigurationError: authority_uri_insecure: Authority URIs must use https.  #10

@hjk2022

Description

@hjk2022

Please provide us with the following information:

This issue is for a: (mark with an x)

- [x ] bug report -> please search issues before submitting
- [ ] feature request
- [ ] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)

Minimal steps to reproduce

Downloaded the sample, followed ReadMe to plug in values for all the "Enter_the_xxx". Terminal npm start or ng serve --port 4200 --ssl, clicked on button, nothing happened.

Any log messages given by the failure

Console shows:

ERROR Error: Uncaught (in promise): ClientConfigurationError: authority_uri_insecure: Authority URIs must use https. Please see here for valid authority configuration options: https://docs.microsoft.com/en-us/azure/active-directory/develop/msal-js-initializing-client-applications#configuration-options Given URI: "https://login.microsoftonline.com/common/"/
ClientConfigurationError: authority_uri_insecure: Authority URIs must use https. Please see here for valid authority configuration options: https://docs.microsoft.com/en-us/azure/active-directory/develop/msal-js-initializing-client-applications#configuration-options Given URI: "https://login.microsoftonline.com/common/"/
at ClientConfigurationError.AuthError [as constructor] (AuthError.js:31:24)
at ClientConfigurationError.ClientAuthError [as constructor] (ClientAuthError.js:206:28)
at new ClientConfigurationError (ClientConfigurationError.js:113:28)
at ClientConfigurationError.createInsecureAuthorityUriError (ClientConfigurationError.js:141:16)
at UrlString.validateAsUri (UrlString.js:71:19)
at Authority.set (Authority.js:80:38)
at new Authority (Authority.js:27:9)
at AuthorityFactory.createInstance (AuthorityFactory.js:63:16)
at Function. (AuthorityFactory.js:32:66)
at step (_tslib.js:75:23)
at resolvePromise (zone.js:1211:31)
at zone.js:1118:17
at zone.js:1134:33
at _ZoneDelegate.invoke (zone.js:372:26)
at Object.onInvoke (core.mjs:26231:33)
at _ZoneDelegate.invoke (zone.js:371:52)
at Zone.run (zone.js:134:43)
at zone.js:1275:36
at _ZoneDelegate.invokeTask (zone.js:406:31)
at Object.onInvokeTask (core.mjs:26218:33)

Expected/desired behavior

get prompt for signing in

OS and Version?

Windows 10

Versions

22H2 (OS Build 19045.3324)

Mention any other details that might be useful

Angular v16 environment


Thanks! We'll be in touch soon.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions