Hey guys ! I have configure google login on my Kr...
# talk-kratos
f
Hey guys ! I have configure google login on my Kratos config but it keeps on redirecting me on signUp after registering with google and cookie is not set. Here is my kratos config :
selfservice:
default_browser_return_url: <http://localhost:3000/>
whitelisted_return_urls:
- <http://localhost:4455>
methods:
password:
enabled: true
oidc:
enabled: true
config:
providers:
`- id: google # this is
<provider-id>
in the Authorization callback URL. DO NOT CHANGE IT ONCE SET!`
provider: google
client_id: XXXX
client_secret: XXXX
mapper_url: file:///etc/config/kratos/oidc.google.jsonnet
scope:
- email
- profile
requested_claims:
id_token:
email:
essential: true
email_verified:
essential: true
given_name:
essential: true
family_name: null
hd: null # If you want the G Suite domain
flows:
error:
ui_url: <http://localhost:4455/error>
settings:
ui_url: <http://localhost:4455/settings>
privileged_session_max_age: 15m
recovery:
enabled: true
ui_url: <http://localhost:4455/recovery>
verification:
enabled: true
ui_url: <http://localhost:4455/verification>"
after:
default_browser_return_url: <http://localhost:4455/auth/login?email-verification-status=true>
logout:
after:
default_browser_return_url: <http://localhost:4455/auth/login>
login:
ui_url: <http://localhost:4455/auth/login>
lifespan: 1h
after:
password:
hooks:
- hook: require_verified_address
registration:
lifespan: 1h
ui_url: <http://localhost:4455/auth/registration>
after:
oidc:
hooks:
- hook: session
d
Hello. Consider using 127.0.0.1 for your case. AFAIK you can have issues with cookies for localhost domain using google chrome. At the first glance your configuration looks good
f
@User I was able to signUp and login with google but I have one weird issue.If I logout and click signUp with google the cookie get set with previous create account instead try to create new account.