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

Bed 4767 feat: add callback handler for OIDC #898

Open
wants to merge 4 commits into
base: BED-4768
Choose a base branch
from
Open

Conversation

mistahj67
Copy link
Contributor

@mistahj67 mistahj67 commented Oct 4, 2024

Description

Note: This shouldn't be merged into BED-4768 and should wait until the following are merged:

It was just selected as the base for easier PR review.

Add callback handler for OIDC

Motivation and Context

This PR addresses: BED-4767

Why is this change required? What problem does it solve?
In order to support OIDC we need to have a generic callback handler

How Has This Been Tested?

This is used in conjunction with Authentik locally to verify proper callback handling occurred.

Types of changes

  • New feature (non-breaking change which adds functionality)

Checklist:

  • I have met the contributing prerequisites
  • I have ensured that related documentation is up-to-date
    • Open API docs
    • Code comments (GoDocs / JSDocs)
  • I have followed proper test practices
    • Added/updated tests to cover my changes
    • All new and existing tests passed

@mistahj67 mistahj67 added work in progress This pull request is a work in progress and should not be merged blocked This pull request cannot be completed and should not be merged api A pull request containing changes affecting the API code. labels Oct 4, 2024
@mistahj67 mistahj67 self-assigned this Oct 4, 2024
@mistahj67 mistahj67 changed the title Bed 4767 Bed 4767 feat: add callback handler for OIDC Oct 4, 2024
Comment on lines +352 to +354
case model.OIDCProvider:
//todo connect to db provider table
break
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This must be done once user table is properly migrated / updated to handle either a generic sso_provider_id or a second oidc_provider_id table @mvlipka

@@ -27,7 +27,7 @@ const (

// SSOProvider is the common representation of an SSO provider that can be used to display high level information about that provider
type SSOProvider struct {
Type SSOProviderType `json:"type"`
Type SessionAuthProvider `json:"type"`
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This likely needs to be updated to whatever was reflected in #896

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api A pull request containing changes affecting the API code. blocked This pull request cannot be completed and should not be merged
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant