Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

432
Visualizações
How can create userManager directly with 'id_token', 'access_token', expiry etc.?

In my angular app I have used oidc-client.js library. previously, everything was fine because I have configured all minimal required fields as below

      "resourceUrl": "//xxxxx.abc.net",
      "clientId": "cdgdsg335",
      "authority": "//xyz.com/A1",
      "response_type": "id_token token",
      "response_mode": "query",
      "scope": "openid email profile",
      "automaticSilentRenew": false,
      "silent_renew_url": "/silent-renew.html",
      "redirect_url": "/auth-callback",
      "post_logout_redirect_url": "/login"

But now, Instead of redirecting to authentication site using authority url and getting tokens through redirection call, the back-end has provided the direct api (/token) to fetch id_token, access_token and refresh token.So, How can I configure user using userManager without using signinRedirect() and signinRedirectCallback(). Please help me with this?

I tried tweaking userManager.settings but no luck

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

The oidc-client library is for Javascript only flows, and you will need to use a back end for front end approach to do things as you suggest.

Here is some sample code for an SPA that uses only API calls - as you can see the code is simplified - there is a related article also.

Doing SPA security via an API is a more secure solution though a little tricky - but the above resources will show how.

about 4 years ago · Juan Pablo Isaza Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda