1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

  2. Anuncie Aqui ! Entre em contato fdantas@4each.com.br

[Flutter] How to get a valid RS256 token from Azure in a Flutter app?

Discussão em 'Mobile' iniciado por Stack, Novembro 13, 2024.

  1. Stack

    Stack Membro Participativo

    I'm doing a Flutter app for iOS and Android, and I need to use authentification to access to the main content.

    For that I used this pubdev package(aad_oauth), and it works very well. I need to get the token provided by Azure to send it to my API to authenticate my user.

    I used this method :

    var token = await oauth.getAccessToken();


    But the token is considered invalid even by my API then by https://jwt.io/ with the error "invalid signature" but works in the Flutter app.

    Here is a censored screen of jwt.io :

    [​IMG]

    Did someone knows how to get a valid token to send it after ?

    Continue reading...

Compartilhe esta Página