hash-location-strategy

Angular application can't redirect after OAuth2 login when using HashLocationStrategy

痴心易碎 提交于 2021-01-03 06:38:24
问题 I am working on an existing, in-production Angular 7 application. My task is migrate from a local authentication scheme to an existing company-wide identity provider. The identity provider is compliant with OAuth2. I am using the oidc-client library to try and accomplish this. The Angular app is using HashLocationStrategy, and I am fairly certain this requirement cannot change . I was not the original author of this app, so I don’t know the exact reasoning for choosing HashLocationStrategy

Azure OAuth2 fails with Angular HashLocationStrategy

最后都变了- 提交于 2020-02-25 06:09:58
问题 This is a follow up question to Angular App Hosting Azure Storage Container - Azure Authentication Callback and Routing fails. Summary: I want to host my Angular 8 app on an Azure Storage Account. To make the routing work I had to turn on the HashLocationStrategy. This strategy prefixes the routes with a hashtag like this: https://<projectname>.z6.web.core.windows.net/#/auth/login The routing works now but the Azure OAuth2 process adds the access token information to the base url also by

Azure OAuth2 fails with Angular HashLocationStrategy

可紊 提交于 2020-02-25 06:06:53
问题 This is a follow up question to Angular App Hosting Azure Storage Container - Azure Authentication Callback and Routing fails. Summary: I want to host my Angular 8 app on an Azure Storage Account. To make the routing work I had to turn on the HashLocationStrategy. This strategy prefixes the routes with a hashtag like this: https://<projectname>.z6.web.core.windows.net/#/auth/login The routing works now but the Azure OAuth2 process adds the access token information to the base url also by

Using HTML anchor link #id in Angular 6

为君一笑 提交于 2019-11-28 06:36:50
I am working with Angular 6 project in which I have disabled/removed hash-location-strategy which removes # from URL. due to this change the link having: <li routerLinkActive="active"> <a [routerLink]="['/settings']">Contact Settings</a> <ul class="child-link-sub"> <li> <a href="#contactTypes">Contact Types</a> </li> </ul> </li> is no more working it just skips current components URL and puts #contactTypes after localhost. I found this link which should solve the issue using <a [routerLink]="['/settings/']" fragment="contactTypes" >Contact Types</a> which puts #contactTypes at the end of the

Using HTML anchor link #id in Angular 6

一曲冷凌霜 提交于 2019-11-26 19:20:48
问题 I am working with Angular 6 project in which I have disabled/removed hash-location-strategy which removes # from URL. due to this change the link having: <li routerLinkActive="active"> <a [routerLink]="['/settings']">Contact Settings</a> <ul class="child-link-sub"> <li> <a href="#contactTypes">Contact Types</a> </li> </ul> </li> is no more working it just skips current components URL and puts #contactTypes after localhost. I found this link which should solve the issue using <a [routerLink]="