Skip to content

Commit

Permalink
fix: add email validation for AuthenticateRequest
Browse files Browse the repository at this point in the history
  • Loading branch information
rsbh committed Jan 9, 2025
1 parent aa6b13c commit 240ffc2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion raystack/frontier/v1beta1/frontier.proto
Original file line number Diff line number Diff line change
Expand Up @@ -2455,7 +2455,10 @@ message AuthenticateRequest {
string return_to = 3 [(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {description: "URL to redirect after successful authentication.<br/> *Example:*`\"https://frontier.example.com\"`"}];

// email of the user for magic links
string email = 4 [(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {description: "Email of the user to authenticate. Used for magic links.<br/> *Example:*`[email protected]`"}];
string email = 4 [
(validate.rules).string.email = true,
(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {description: "Email of the user to authenticate. Used for magic links.<br/> *Example:*`[email protected]`"}
];

// callback_url will be used by strategy as last step to finish authentication flow
// in OIDC this host will receive "state" and "code" query params, in case of magic links
Expand Down

0 comments on commit 240ffc2

Please sign in to comment.