-
Notifications
You must be signed in to change notification settings - Fork 3.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Removal of OAuth2 stuff from CLI #15613
base: devel
Are you sure you want to change the base?
Conversation
ec8c570
to
5e2c4e1
Compare
Highly related to: #15623 |
Can't get verification from integration tests due to unrelated issues. CI failures I have addressed in other open PRs. Marked as ready for review, otherwise, merge blocked on totally unrelated stuff. |
@@ -86,11 +86,6 @@ | |||
- workflow names, IDs, or named URLs to export | |||
type: list | |||
elements: str | |||
applications: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I did not remove the applications module from the Collection PR. I thought it was used for more purposes apart from Oauth. Is it not?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I didn't think applications serve any purpose other than for creating tokens. IMO, the tests seemed to reflect this. It's not impossible that I'm wrong, but it seemed relatively clear even from reading the issue for this PR.
dd42e9d
to
cb318b2
Compare
cb318b2
to
65d2112
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just double checking to be thorough, should we remove any of the following?
Token_Auth
class in /awxkit/awxkit/api/client.py- Reference to
OAuth2AccessToken
in /awxkit/awxkit/awx/utils.py - Reference to
load_authtoken()
function in /awxkit/awxkit/scripts/basic_session.py - Usage of token in /awxkit/awxkit/ws.py
@hakbailey thanks, these are good suggestions. However, I have been trying to follow the de-referencing cascade from removing those, which goes deep into the fixture structure of integration tests. This gets a little crazy. My head is spinning from the distinction of I deleted the method in awxkit def uses_sessions(connection):
session_login = connection.get(f"{config.api_base_path}login/")
return session_login.status_code == 200 But this is really my critical point of uncertainty. Why would, or would not, the login endpoint give a 200 code? I thought this would have been part of the recent resource-server work, but no, the method appears to be positively ancient. Previously, it should have always given a 200. I'm thinking perhaps this goes too far, since |
@hakbailey I pushed a commit that carries out your suggestions. This isn't super-trivial, because there were other method references beyond just the things you mention, and there are many corresponding integration test changes that also cascade from those. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks good to me assuming the integration test updates worked...
Quality Gate passedIssues Measures |
SUMMARY
Stuff this does
--conf.token
option from the CLIPing @gravesm
ISSUE TYPE
COMPONENT NAME
COMPONENT NAME