formapro / FpOpenIdBundle

Symfony2 OpenID security extension
53 stars 31 forks source link

Fixed OpenID identifier #16

Closed maff closed 12 years ago

maff commented 12 years ago

Hi,

this patch adds the possibility to add a fixed OpenID identifier via config file. This is useful if you want to allow authentication only against a predefined endpoint (e.g. a Google Apps domain, giving access to those users only).

Regards, Mathias

makasim commented 12 years ago

You can create a custom GoogleConsumer extending ConsumerInterface. There is a support method where you can check whether you can handle identifier or not. Configure ConsumerProvider to use only this provider. that's it.

alex88 commented 11 years ago

@makasim can you post more info in how to do that? I was searching that too to restrict the openid endpoints.