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

OAuth example not setting cookie #3225

Open
1 task done
dsgibbons opened this issue Feb 15, 2025 · 0 comments
Open
1 task done

OAuth example not setting cookie #3225

dsgibbons opened this issue Feb 15, 2025 · 0 comments

Comments

@dsgibbons
Copy link

dsgibbons commented Feb 15, 2025

  • I have looked for existing issues (including closed) about this

Bug Report

Version

  • axum v0.8.2
  • axum-core v0.5.1
  • axum-extra v0.11.0

Platform

Darwin Kernel Version 24.1.0

Crates

Crates as listed in the OAuth example

Description

I followed the instructions for the OAuth example. After the redirect back from Discord, the cookie is not being set. The log states:

2025-02-15T12:24:03.267052Z ERROR example_oauth: Application error: unexpected error getting cookie name

If I add the following at the beginning of csrf_token_validation_workflow:

println!("{:?}", cookies);  // prints Cookie("")

This happens on both Safari and Edge.

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

No branches or pull requests

1 participant