Skip to content

Commit

Permalink
Change nonce and csrf cookie names (#99)
Browse files Browse the repository at this point in the history
* change cookies name

* bump version
  • Loading branch information
t-aleksander authored Nov 19, 2024
1 parent cff2116 commit e353f4e
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "defguard-proxy"
version = "1.0.0"
version = "1.1.0"
edition = "2021"
license = "Apache-2.0"
homepage = "https://github.com/DefGuard/proxy"
Expand Down
4 changes: 2 additions & 2 deletions src/enterprise/handlers/openid_login.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ use crate::{
};

const COOKIE_MAX_AGE: Duration = Duration::days(1);
static CSRF_COOKIE_NAME: &str = "csrf";
static NONCE_COOKIE_NAME: &str = "nonce";
static CSRF_COOKIE_NAME: &str = "csrf_proxy";
static NONCE_COOKIE_NAME: &str = "nonce_proxy";

pub(crate) fn router() -> Router<AppState> {
Router::new()
Expand Down

0 comments on commit e353f4e

Please sign in to comment.