Skip to content
This repository has been archived by the owner on Jan 27, 2021. It is now read-only.

Disable OIDC Keep-Alive and instantiate the client once #42

Merged
merged 1 commit into from
May 29, 2020

Conversation

IljaN
Copy link
Member

@IljaN IljaN commented May 29, 2020

This should reduce file-descriptor leaks.

Related:
owncloud/ocis#268
cs3org/reva#787

@IljaN IljaN self-assigned this May 29, 2020
@update-docs
Copy link

update-docs bot commented May 29, 2020

Thanks for opening this pull request! The maintainers of this repository would appreciate it if you would create a changelog item based on your changes.

@IljaN IljaN requested review from refs, C0rby and kulmann May 29, 2020 08:05
Copy link
Contributor

@C0rby C0rby left a comment

Choose a reason for hiding this comment

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

👍

@@ -92,6 +91,8 @@ func OpenIDConnect(opts ...ocisoidc.Option) func(next http.Handler) http.Handler
// The claims we want to have
var claims ocisoidc.StandardClaims

token := header[7:]
Copy link
Contributor

@C0rby C0rby May 29, 2020

Choose a reason for hiding this comment

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

I guess you are cutting of Bearer here? Maybe something like strings.TrimPrefix(header, "Bearer ") or header[len("Bearer "):] could make it more explicit.

Copy link
Member Author

Choose a reason for hiding this comment

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

Thanks :)

This should reduce file-descriptor leaks.
@IljaN IljaN changed the title Disable OIDC Keep-Alive and instantiate client once Disable OIDC Keep-Alive and instantiate the client once May 29, 2020
@IljaN IljaN merged commit d7c0728 into master May 29, 2020
@delete-merged-branch delete-merged-branch bot deleted the disable_oidc_keep_alive branch May 29, 2020 09:15
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants