# Suddenly You are already Logged In Error is coming for REDIRECT URI Scheme

**URL:** https://forum.keycloak.org/t/suddenly-you-are-already-logged-in-error-is-coming-for-redirect-uri-scheme/12733
**Category:** Miscellanaeous
**Created:** [December 22, 2021, 5:19am UTC](https://forum.keycloak.org/t/suddenly-you-are-already-logged-in-error-is-coming-for-redirect-uri-scheme/12733 "2021-12-22T05:19:54Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![karthikr.subs](https://yyz2.discourse-cdn.com/free1/user_avatar/forum.keycloak.org/karthikr.subs/32/4666_2.png) [@karthikr.subs](https://forum.keycloak.org/u/karthikr.subs)
#### Post date: [December 22, 2021, 5:19am UTC](https://forum.keycloak.org/t/suddenly-you-are-already-logged-in-error-is-coming-for-redirect-uri-scheme/12733/1 "2021-12-22T05:19:54Z")

</div>

Hello Team, we are trying to configure APpAuth SDK with Keycloak  
Steps

1. Configured a client in keycloak with redirect uri  
com.example.demoapp://oauth2/redirect, but post click submit in login page of keycloak,  
we are getting user logged in [this we tried from Browseritself]

[http://localhost:8080/auth/realms/appsdeveloperblog/protocol/openid-connect/auth?client\_id=test-mob&redirect\_uri=com.example.demoapp://oauth2/redirect&state=3e622896-4927-4be2-8aca-cfdddec1d13b&response\_type=code&scope=openid&nonce=39a83b3d-c6b7-4c4a-a29f-1dcf7f6e3190&code\_challenge=-sUEoAV-txYvhniiuJ4-gwNCtsiD2XiIPvLQYm-sUsE&code\_challenge\_method=S256](http://localhost:8080/auth/realms/appsdeveloperblog/protocol/openid-connect/auth?client_id=test-mob&redirect_uri=com.example.demoapp://oauth2/redirect&state=3e622896-4927-4be2-8aca-cfdddec1d13b&response_type=code&scope=openid&nonce=39a83b3d-c6b7-4c4a-a29f-1dcf7f6e3190&code_challenge=-sUEoAV-txYvhniiuJ4-gwNCtsiD2XiIPvLQYm-sUsE&code_challenge_method=S256)

When we change the redirect uri to http: kind it is not giving error
