mirror of
https://github.com/steveiliop56/tinyauth.git
synced 2026-06-03 10:00:15 +00:00
refactor: use ticket approach for oidc flow
This commit is contained in:
@@ -74,7 +74,7 @@ type AuthorizeScreenParams struct {
|
||||
}
|
||||
|
||||
type AuthorizeCompleteRequest struct {
|
||||
Ticket string `json:"oidc_ticket" binding:"required"`
|
||||
Ticket string `json:"ticket" binding:"required"`
|
||||
}
|
||||
|
||||
func NewOIDCController(
|
||||
@@ -166,7 +166,7 @@ func (controller *OIDCController) authorize(c *gin.Context) {
|
||||
ticket := controller.oidc.CreateAuthorizeRequestTicket(req)
|
||||
|
||||
queries, err := query.Values(AuthorizeScreenParams{
|
||||
LoginFor: req.ClientID,
|
||||
LoginFor: "oidc",
|
||||
OIDCTicket: ticket,
|
||||
OIDCScope: req.Scope,
|
||||
OIDCName: client.Name,
|
||||
|
||||
Reference in New Issue
Block a user