Skip to content
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

Remove authentication from /openapi/v2 call #372

Merged
merged 4 commits into from
Dec 24, 2018

Conversation

ajpauwels
Copy link
Contributor

fixes #371

Copy link
Contributor

@silasbw silasbw left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for tracking down this issue and sending in a fix!

url: this.http.requestOptions.baseUrl,
ca: this.http.requestOptions.ca
})
return noAuthHTTP.http({ method: 'GET', pathname })
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What if we added a noAuth option to http? One benefit of doing that is if we modify Request or add a new version and a user constructs it with some custom configuration that we wouldn't know how to replicate when we construct it here.

Thoughts?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That sounds good to me, would it then be accessible through this.http.noAuth.http(...) or do you have a better idea? Or am I misunderstanding?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@@ -33,14 +33,14 @@ const Request = require('./request')

class Root extends Component {
_getSpec (pathname) {
return this.http.http({ method: 'GET', pathname })
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was imagining something like:

return this.http.http({ method: 'GET', pathname, noAuth: true })

@ajpauwels
Copy link
Contributor Author

A little swamped this week but will get to this over the weekend.

@ajpauwels
Copy link
Contributor Author

@silasbw Addressed comments in latest PR

@silasbw silasbw merged commit ef1467a into godaddy:master Dec 24, 2018
@silasbw
Copy link
Contributor

silasbw commented Dec 24, 2018

Thanks again. Published with kubernetes-client@6.6.0.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

/openapi/v2 returns 401 when an authenticated call is made
3 participants