I am using angular-oauth2-oidc for authentication in my angular project.
When I login in the oauth2 server I am redirect to my web page, but I see the information of the authentication in the browser url, then when I navigate to others page, everything works well the information dissapear.
type of information that I have in browser url.
http://localhost:4200/Test/Farmer?code=168C9AF....&scope=openid%20profile%20email%20roles&state=......
I don´t want to see that, I want to see
http://localhost:4200/Test/Farmer
my config is like that
export const authCodeFlowConfig: AuthConfig = {
issuer: environment.authority,
redirectUri: window.location.origin + "/home",
My app-routing.module.ts
I don´t have the path home I redirect to Test
const routes: Routes = [
{
path:'Test',
children: [
{
path: '', redirectTo: "Farmer", pathMatch: "full"
},
{
path: 'Farmer',
loadChildren: () => import('src/app/main/pages/...').then(m => m...Module),
},
...
{ path: '**', redirectTo: 'Test'},
{ path: '', redirectTo: 'Test', pathMatch: 'full' }
}
Best regards