Giter Club home page Giter Club logo

Comments (8)

cong5 avatar cong5 commented on June 4, 2024

Console backend login no longer reports an error, but the return value from Machine-to-Machine application requesting Machine-to-Machine is:

{
    "message": "未经授权。请检查凭据及其范围。",
    "code": "auth.unauthorized",
    "data": {
        "code": "ERR_JWKS_NO_MATCHING_KEY",
        "name": "JWKSNoMatchingKey",
        "message": "no applicable key found in the JSON Web Key Set"
    }
}

from logto.

darcyYe avatar darcyYe commented on June 4, 2024

Hi @cong5 , could you please elaborate on your setup and how you make M2M requests?

from logto.

cong5 avatar cong5 commented on June 4, 2024

Hi @cong5 , could you please elaborate on your setup and how you make M2M requests?

first request https://xxx.shop/oidc/token get access_token:
image

second request any Logto Management API response this error.

image

from logto.

darcyYe avatar darcyYe commented on June 4, 2024

Are you using a self-hosted OSS version? or you are using Logto Cloud.

from logto.

cong5 avatar cong5 commented on June 4, 2024

Are you using a self-hosted OSS version? or you are using Logto Cloud.
using a self-hosted version

from logto.

darcyYe avatar darcyYe commented on June 4, 2024

Did you or someone with access to your Logto localhost change the oidc.privateKeys after the instance started but before you requested the Logto management API?

from logto.

darcyYe avatar darcyYe commented on June 4, 2024

I can not reproduce your issue on my machine. I started a brand new OSS Logto instance with a new DB, created a m2m app, can hence successfully get the access token and access the management API. It could be helpful if you can provide a step by step guide to reproduce this issue.

from logto.

darcyYe avatar darcyYe commented on June 4, 2024

You can also check whether you have assigned the scope all to the M2M app via an m2m role.

from logto.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.