Skip to content

Commit 5d6d142

Browse files
committed
Fix dockerfile and env layout
1 parent 15b0cb5 commit 5d6d142

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

.env.example

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ OIDC_REDIRECT_URI=http://localhost:3000/oidc/callback
66
OIDC_LOGOUT_REDIRECT_URI=http://localhost:3000/oidc/logout
77

88
# openid is always included
9-
OIDC_SCOPES="openid cn email basic"
9+
OIDC_SCOPES=openid,cn,email,basic

Dockerfile

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ FROM debian:bookworm
22

33
WORKDIR /app
44

5-
RUN apt-get update && apt-get install openssl -y
5+
RUN apt-get update && apt-get install openssl ca-certificates -y
66

77
COPY ./target/release/oidc-saml-demo oidc-saml-demo
88

9-
CMD ["bash", "-c", "/app/oidc-saml-demo"]
9+
CMD ["/app/oidc-saml-demo"]

src/env.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ fn init_oidc_config() -> Result<OidcConfig, EnvError> {
7171
break 'oidc DEFAULT_SCOPES.iter().map(|&it| it.to_string()).collect();
7272
};
7373

74-
let mut scopes: Vec<String> = scopes.split(' ').map(|s| s.to_string()).collect();
74+
let mut scopes: Vec<String> = scopes.split(',').map(|s| s.to_string()).collect();
7575

7676
for scope in DEFAULT_SCOPES {
7777
if !scope.contains(scope) {

0 commit comments

Comments
 (0)