Soluto / oidc-server-mock

Configurable Mock Server for OpenId Connect
Apache License 2.0
222 stars 35 forks source link

auto login #105

Closed karthik233 closed 1 year ago

karthik233 commented 2 years ago

I am from testing background, and needed some information I have setup oidc mock for automated test execution as we cant use SSO login in docker/container test env.

My question is, wanted to know if we can automatically login when user clicks "login" button. Can this support multiple user? eg. each test env having different user for login.

We are not using implicit flow "AllowedScopes": [ "openid", "profile", "email", ],

AleF83 commented 2 years ago

What do you mean "login"? what flow do you use?

karthik233 commented 2 years ago

so we have application, where login is needed. In typical scenario when login is clicked, SSO login happens. As we are planning to execute tests in test environment we are planning to use mock for login.

we are used implicit flow

wanted to know if we can mimic the behaviour of SSO

AleF83 commented 2 years ago

You can implement the flow just as in e2e tests. You should use playwright or other similar library for login page.