Repository navigation
Check dev users first in the example, fix README claims left after #341 - #344
Merged
Merged
Conversation
The example's Validator matched user id prefixes before the dev name check. Dev ids are the bare typed names, so a dev user named email_alice or custom123_x passed the dev_ rule. The signed provider name now decides first. The bitbucket endpoint comes from golang.org/x/oauth2/bitbucket, the same URLs, which gosec read as hardcoded credentials. README and example README fixes: - a dev user without the dev_ prefix gets 401 and cleared cookies on the first authenticated request, not only on /private_data - User.Audience is filled by Get, not by Parse or the login response - TokenDuration applies to tokens issued through Set; a token signed with TokenService().Token gets no expiry unless ExpiresAt is set - the default custom server login page also asks for a password - an empty Telegram base URL selects the public API - the service's own hostname accepts any port even when Opts.URL names one - the reverse proxy case is labelled as not supported - a restart forgets redeemed verify tokens with the default in-memory store, in the README and AGENTS.md, which closes that backlog item The Opts.AudienceReader comment in both modules says nil allows any audience and an empty list rejects every token, as checkAuds does. New backlog items: aud from the login request is not proof of tenant membership, a self-built handler must set claims.ID for the XSRF check, and the LoginAuth comment still names outlook.com.
Coverage Report for CI Build 45664351901Coverage decreased (-0.4%) to 88.193%Details
Uncovered ChangesNo uncovered changes found. Coverage RegressionsNo coverage regressions found. Coverage Stats
💛 - Coveralls |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Follow-up to #341 with the corrections from its last review, made after the merge.
The example's
Validatormatched user id prefixes before the dev name check. Dev ids are the bare typed names, so a dev user namedemail_aliceorcustom123_xpassed thedev_rule. The signed provider name now decides first. The bitbucket endpoint comes fromgolang.org/x/oauth2/bitbucket, same URLs, which gosec read as hardcoded credentials.README and example README:
dev_prefix gets 401 and cleared cookies on the first authenticated request, not only on/private_dataUser.Audienceis filled byGet, not byParseor the login responseTokenDurationapplies to tokens issued throughSet; a token signed withTokenService().Tokengets no expiry unlessExpiresAtis set, and v2 accepts it from the header or query without limitOpts.URLnames oneAGENTS.md, which closes that backlog itemThe
Opts.AudienceReadercomment in both modules now says nil allows any audience and an empty list rejects every token, ascheckAudsdoes.Three new backlog items:
audfrom the login request is not proof of tenant membership, a self-built handler must setclaims.IDfor the XSRF check, and theLoginAuthcomment still names outlook.com.