SingleSignOnServiceProviderBundle icon indicating copy to clipboard operation
SingleSignOnServiceProviderBundle copied to clipboard

Configuration Exception

Open igor-tvardyi opened this issue 6 years ago • 4 comments

I got InvalidConfigurationException Invalid firewall "main": user provider "main" not found.

Because of

main: pattern: ^/ security: true sso: require_previous_session: false provider: main

Symfony 3.4.22

igor-tvardyi avatar Feb 05 '19 15:02 igor-tvardyi

Hi,

Could you please show configuration of the user providers?

korotovsky avatar Feb 05 '19 15:02 korotovsky

I just started new project and there: # https://symfony.com/doc/current/security.html#b-configuring-how-users-are-loaded providers: in_memory: memory: ~ # fos_userbundle: # id: fos_user.user_provider.username

PS. I've changed main to in_memory

igor-tvardyi avatar Feb 06 '19 08:02 igor-tvardyi

And one more question: I have 3 projects and each of them has OAuth for api and standard auth for Web. Is your system applicable to manage SSO in this case? Thank you in advance.

igor-tvardyi avatar Feb 06 '19 08:02 igor-tvardyi

We used this bundle in the configuration of the main IdP + 4 SP. In theory on IdP you could have OAuth (social auth) and then behind have this SSO as IdP. For API we had a customized providers so it can not really automatically handle tokens.

But in the end either you invent almost the same bundle or spend fair amount of time for debugging and integrating for your particular use-case and re-use most of the components.

korotovsky avatar Feb 06 '19 11:02 korotovsky