You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
User A registers to my site with a standard email/password registration. In the database, User A is created with 'email' provider.
Then, User A tries to login to my site with a custom OAuth provider (with doorkeeper). In the database, User A is now created again with 'mydoorkeeper' provider.
Now, everytime User A logins with OAuth provider, it will work. Then when the user refresh browser, it still work too (basically, it passes the token validation check).
If User A logins normally without OAuth, it will work. But if the user refresh the browser, the token validation check fails because invalid login credentials.
Started GET "/jojo/api/v1/tenant/tenant_auth/validate_token" for 10.0.2.2 at 2015-07-09 13:41:10 +0700
Cannot render console from 10.0.2.2! Allowed networks: 127.0.0.1, ::1, 127.0.0.0/127.255.255.255
CURRENT SCHEMA: jojo
Processing by DeviseTokenAuth::TokenValidationsController#validate_token as HTML
Parameters: {"subdomain"=>"jojo"}
^[[1m^[[35mTenantUser Load (0.6ms)^[[0m SELECT "tenant_users".* FROM "tenant_users" WHERE "tenant_users"."uid" = $1 LIMIT 1 [["uid", "[email protected]"]]
Completed 401 Unauthorized in 4ms (Views: 0.3ms | ActiveRecord: 0.6ms)
fyi, there are 2 tenant_users with uid = [email protected] in the database. But the provider column is different.
Environmental Info
I'm using Rails as the API with AngularJS for the frontend. They are served by different web servers.
The OAuth provider is a custom one built with Doorkeeper.
The routing is pretty weird since I have to implement multi-tenancy without relying on subdomain, but the routing should not be a problem.
I'm using ng-token-auth.
The database is PostgreSQL.
Let me know if you need anything else.
The text was updated successfully, but these errors were encountered:
In an effort to cleanup this project and prioritize a bit, we're marking issues that haven't had any activity in a while with a "close-in-7-days" label. If we don't hear from you in about a week, we'll be closing this issue. Obviously feel free to re-open it at any time if it's the right time or this was done in error!
If you are still having the issue (especially if it's a bug report) please refer to our new Issue Template to provide some more details to help us solve it.
Here is the scenario (I'm using ng-token-auth):
Do you have any idea why this is happening?
EDIT: Some additional information.
Version:
Request headers: (for validate token in Step 4)
Response headers: (for validate token in Step 4)
Rails Stacktrace
fyi, there are 2 tenant_users with uid = [email protected] in the database. But the provider column is different.
Environmental Info
Let me know if you need anything else.
The text was updated successfully, but these errors were encountered: