Skip to content

Commit

Permalink
chore: update reqwest version and better logs around fetching jwks
Browse files Browse the repository at this point in the history
  • Loading branch information
lmammino committed Apr 9, 2024
1 parent ef8657c commit 5dda4dc
Show file tree
Hide file tree
Showing 8 changed files with 25 additions and 18 deletions.
25 changes: 16 additions & 9 deletions Cargo.lock

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

4 changes: 2 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "oidc-authorizer"
version = "0.0.9"
version = "0.0.10"
edition = "2021"
license = "MIT"

Expand All @@ -20,7 +20,7 @@ chrono = "0.4.31"
futures-util = "0.3.28"
jsonwebtoken = "8.3.0"
lambda_runtime = "0.11.1"
reqwest = { version = "0.12.2", default_features = false, features = [
reqwest = { version = "0.12.3", default_features = false, features = [
"json",
"rustls-tls",
"http2",
Expand Down
4 changes: 2 additions & 2 deletions docs/deploy.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ Resources:
Properties:
Location:
ApplicationId: arn:aws:serverlessrepo:eu-west-1:795006566846:applications/oidc-authorizer
SemanticVersion: 0.0.9 # ⬅️ CHANGE: SPECIFY THE EXACT VERSION
SemanticVersion: 0.0.10 # ⬅️ CHANGE: SPECIFY THE EXACT VERSION
Parameters:
# 👀 CHANGE THE FOLLOWING PARAMETERS
AcceptedAlgorithms: ""
Expand Down Expand Up @@ -66,7 +66,7 @@ The following snippet shows how to use the SAR application with CDK (using Types
const authorizerApp = new cdk.aws_sam.CfnApplication(this, 'AuthorizerApp', {
location: {
applicationId: 'arn:aws:serverlessrepo:eu-west-1:795006566846:applications/oidc-authorizer',
semanticVersion: '0.0.9' // 👀 CHANGE ME
semanticVersion: '0.0.10' // 👀 CHANGE ME
},
parameters: {
// 👀 CHANGE THE FOLLOWING PARAMETERS
Expand Down
2 changes: 1 addition & 1 deletion examples/cdk-from-sar/cloudformation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Resources:
Properties:
Location:
ApplicationId: arn:aws:serverlessrepo:eu-west-1:795006566846:applications/oidc-authorizer
SemanticVersion: 0.0.9
SemanticVersion: 0.0.10
Parameters:
AcceptedAlgorithms: ""
AcceptedAudiences: ""
Expand Down
2 changes: 1 addition & 1 deletion examples/cdk-from-sar/lib/cdk-stack.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export class CdkStack extends cdk.Stack {
const authorizerApp = new cdk.aws_sam.CfnApplication(this, 'AuthorizerApp', {
location: {
applicationId: 'arn:aws:serverlessrepo:eu-west-1:795006566846:applications/oidc-authorizer',
semanticVersion: '0.0.9' // 👀 CHANGE ME
semanticVersion: '0.0.10' // 👀 CHANGE ME
},
parameters: {
// 👀 CHANGE THE FOLLOWING PARAMETERS
Expand Down
2 changes: 1 addition & 1 deletion examples/sam-from-sar/template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ Resources:
Properties:
Location:
ApplicationId: arn:aws:serverlessrepo:eu-west-1:795006566846:applications/oidc-authorizer
SemanticVersion: 0.0.9 # 👀 CHANGE ME
SemanticVersion: 0.0.10 # 👀 CHANGE ME
Parameters:
# 👀 CHANGE THE FOLLOWING PARAMETERS
AcceptedAlgorithms: ""
Expand Down
2 changes: 1 addition & 1 deletion src/keys_storage.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ impl KeysStorage {
}

async fn refresh(&self) -> Result<(), KeysStorageError> {
tracing::debug!("Refreshing JWKS");
tracing::debug!("Refreshing JWKS from '{}'", self.jwks_uri.as_ref());
let res = self.client.get(self.jwks_uri.as_ref()).send().await?;
tracing::debug!("JWKS fetched got status: {}", res.status());
let jwks = res.text().await?;
Expand Down
2 changes: 1 addition & 1 deletion template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Metadata:
ReadmeUrl: README.md
Labels: ["apigateway", "authorizer", "lambda", "oidc"]
HomePageUrl: https://github.com/lmammino/oidc-authorizer
SemanticVersion: 0.0.9
SemanticVersion: 0.0.10
SourceCodeUrl: https://github.com/lmammino/oidc-authorizer

Parameters:
Expand Down

0 comments on commit 5dda4dc

Please sign in to comment.