Giter Site home page Giter Site logo

Comments (7)

rohe avatar rohe commented on August 28, 2024

9 okt 2015 kl. 20:58 skrev Benjamin Goering [email protected]:

http://openid.net/specs/openid-connect-registration-1_0.html#ClientConfigurationEndpoint

oic.oic.Provider:registration_endpoint works great, and the ClientRegistrationResponse includes the 'registration_client_uri'. However, if I issue GET requests to that URI, I usually get a 400 Bad Request response code. It looks like this is because the GET request is treated the same as a (new) Client Registration Request.

@rohe Is this ”Client Read Request" functionality something intentionally omitted?

Not intentionally omitted!

Or would you welcome contributions to implement it?

Yes ! :-)

— Roland
'Look, that's why there's rules, understand? So that you think before you break ’em.’ - Terry Pratchett

from pyoidc.

gobengo avatar gobengo commented on August 28, 2024

Thanks @rohe. I'll work toward a pull request that you and others can weigh in on.

from pyoidc.

tpazderka avatar tpazderka commented on August 28, 2024

We do have our own implementation of this, so I can give it a try.

from pyoidc.

tpazderka avatar tpazderka commented on August 28, 2024

Eh, sorry. Misread the issue. I am not familiar with the usage of endpoints in this manner.

from pyoidc.

tpazderka avatar tpazderka commented on August 28, 2024

It looks like this cannot be done in the current state of the Endpoint class. Each endpoint is bound to one function. In order to get this to work, we would have to create a new Endpoint subclass that would be doing this. It would be then a question of configuration to distinguish between POST/GET on the same url and pointing to the correct endpoint.

from pyoidc.

schlenk avatar schlenk commented on August 28, 2024

Isn't this implemented in the oic/extension/providers.py code:

https://github.com/OpenIDC/pyoidc/blob/a0dcac099c2b1adb0bd546080175d77c725bc48f/src/oic/extension/provider.py#L449

At least it looks pretty similar.

from pyoidc.

tpazderka avatar tpazderka commented on August 28, 2024

You are correct!

The only documented method in OIDC specifications is GET so I would definitely move that one to the generic class. The rest probably should remain in the extensions. We should enable easy override of the other methods for users.

I will give it a try later this week.

from pyoidc.

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.