Commit Graph

33 Commits

Author SHA1 Message Date
Andrey Melnikov
2931d5e754 update: fixed missing generated files for grpc and moved generated files into their own subdirectory for easier separation of files. 2020-12-17 15:46:34 -08:00
Andrey Melnikov
d99189807d feat: updated grpc gateway related code 2020-12-17 14:09:20 -08:00
Andrey Melnikov
89c0f26103 Revert "feat: remove is valid token endpoint"
This reverts commit 466a417e60.

Also marks the IsValidToken endpoint as deprecated
2020-11-16 10:46:44 -08:00
Andrey Melnikov
466a417e60 feat: remove is valid token endpoint 2020-11-12 15:55:58 -08:00
Andrey Melnikov
717a4bc2e8 fix: temporary fix while cvat is not updated to use new auth 2020-11-06 12:11:40 -08:00
Andrey Melnikov
a405e8bf46 feat: update api to use accessTokenAuth 2020-11-03 13:37:30 -08:00
Andrey Melnikov
93bdc7cd70 fix: rename LogIn to GetAccessToken 2020-11-03 10:29:02 -08:00
Andrey Melnikov
b129a1da7d fix: moved token to be inside client instead of sysconfig as it is not a system config value, but it is applicable to the current client.
This fixes some concurrency issues since you could have multiple requests handled at the same time that try to read and modify the system values.
2020-10-30 23:48:51 -07:00
Andrey Melnikov
e41d5c38af feat: added log in endpoint which is essentially an alias for auth token, but is more descriptive 2020-10-29 12:14:53 -07:00
Andrey Melnikov
20c4950b69 feat: revert jwt token from auth 2020-10-14 11:53:05 -07:00
Andrey Melnikov
5bd2feaa86 update: added username to returned auth token 2020-10-12 17:01:26 -07:00
Andrey Melnikov
7150f24631 feat: update incoming token to be a JWT token that takes in username 2020-10-12 16:07:12 -07:00
Andrey Melnikov
93d1b4a2c0 update: permissions issues are now more detailed 2020-08-19 11:00:40 -07:00
Andrey Melnikov
b8191f6b1f Merge remote-tracking branch 'origin/feat/onepanelio.core.266-is.authorized.changes' into feat/authorization.updates 2020-06-10 22:44:51 -07:00
rushtehrani
5f6bda8838 refactor: clean up client code 2020-06-08 15:25:02 -07:00
Andrey Melnikov
c226ff8419 update: removed code specific to x-original-auth based on changes upcoming to structure.
* Auth token will always be present unless you are validating an auth token.
2020-06-08 14:44:28 -07:00
Andrey Melnikov
27203d4d7f docs: for AuthServer 2020-06-08 11:59:00 -07:00
Andrey Melnikov
88955d4e15 fix: issue where request data did not come through to api 2020-06-05 16:03:05 -07:00
Andrey Melnikov
e2f027dd61 update: centralized authorization logic for workspace actions into one IsAuthorized endpoint 2020-06-04 14:01:07 -07:00
Aleksandr Melnikov
e2d286356f Updating isAuthorized function name to isValidToken
- Simplified the returned values to just err.
- Updating related code
2020-05-18 14:17:38 -07:00
Aleksandr Melnikov
8f94318944 Renaming err2. 2020-05-18 14:03:58 -07:00
Aleksandr Melnikov
e0cca02a3a Added IsAuthorized function to AuthServer
- Put a helper function into isAuthorized.
2020-05-18 13:49:31 -07:00
Aleksandr Melnikov
49451b5008 Per feedback, using the new auth code logic.
Also, using "apps" instead of "apps/v1"
2020-05-06 14:10:09 -07:00
Aleksandr Melnikov
fae40730ae Fixing the IsAuthorized value checking.
- IsAuthorized would return nil for err, but allowed was false.
The code returned "empty, err", which was "empty, nil".
So nothing was blocked.
- Using status.Error to properly return a 403.
2020-05-04 16:21:17 -07:00
Aleksandr Melnikov
7616a5ff92 Handling an issue if the user is logging in for the first time,
or if they logged out.
- EnvoyFilter would prevent the user from getting to the login page.
Or any page at all, because the "authorization" header would be missing.
Or, the cookie "auth-token".
2020-05-04 16:20:07 -07:00
Aleksandr Melnikov
5a329c242e Updating code to return the domain field in IsValidToken code. 2020-05-04 11:49:03 -07:00
Aleksandr Melnikov
6d4f8fff3e Added Authentication for statefulsets. 2020-05-01 17:24:33 -07:00
Aleksandr Melnikov
fb73c672fd Updated IsWorkspaceAuthenticated
- Moved it below the struct
- Added debugging print statement for headers.
2020-04-30 14:43:14 -07:00
Aleksandr Melnikov
cc3ffd68ba Adding a return piece. 2020-04-29 16:40:41 -07:00
Aleksandr Melnikov
0d9665e11e Adding head request to auth/token.
- Adding stub method to handle request.
2020-04-28 16:20:55 -07:00
Andrey Melnikov
570e5d9322 fix: Updated authentication check endpoint to take the auth token as POST request data 2020-03-24 15:55:51 -07:00
Andrey Melnikov
7e83da37b3 feat: Added endpoint to check auth token validity
issue: #96
2020-03-10 16:21:50 -07:00
Andrey Melnikov
c5975a4022 feat: Added auth token server
issue #96
2020-03-10 12:53:13 -07:00