8000 improve oauth check by eggegg31415 · Pull Request #9 · free5gc/openapi · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

improve oauth check #9

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

Merged
merged 2 commits into from
Nov 20, 2022
Merged

improve oauth check #9

merged 2 commits into from
Nov 20, 2022

Conversation

eggegg31415
Copy link
Contributor

Improve oauth check

  • check scope
  • token alg

ref: #7

oauth.go Outdated
@@ -55,7 +55,7 @@ func GenerateClientCredentialAssertion(
}

func VerifyOAuth(
authorization, serviceName, certPath string,
authorization, serviceName string, certPath string,
Copy link
Collaborator

Choose a reason for hiding this comment

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

can simplify as:
authorization, serviceName, certPath string,

tim-ywliu
tim-ywliu previously approved these changes Nov 15, 2022
@tim-ywliu tim-ywliu dismissed their stale review November 15, 2022 02:58

can simplify code

@tim-ywliu tim-ywliu merged commit ee7254a into free5gc:main Nov 20, 2022
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.

2 participants
0