Code Monkey home page Code Monkey logo

Comments (3)

livio-a avatar livio-a commented on May 30, 2024

Hey @esumit

Thanks for the issue. You're right, at the moment the library does not handle de/encryption of tokens, whether RP nor OP.
The intention is to add this in the future. But we haven't had a use case ourselves yet. So I'd be interested to hear what yours is.

From your screenshot I believe you're trying to verify the access token on the OP. Is this correct?
If so, could you tell me more about your case. As far as I can see, the OP will only have to validate tokens issued by himself. So decrypting will only be necessary if he encrypted the token himself, which is not possible by the library at the moment.

from oidc.

fforootd avatar fforootd commented on May 30, 2024

Closing this issue as it looks inactive. Feel free to reopen

from oidc.

esumit avatar esumit commented on May 30, 2024

@livio-a Sorry on the delay in my response. ​In my case - I tried to use VerifyAccessToken function ! on that flow I assumed that output of Decrypt function would be utilized by ParseToken (As ParseToken given the error)

func DecryptToken(tokenString string) (string, error) {
return tokenString, nil //TODO: impl
}

then I thought may be something supposed to get implemented on DecryptToken ? so reported the issue. (it was my first time using go oidc library for some of the APIs to have access token way of access when called from another internal service)

from oidc.

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.