Skip to content

Commit 2aadbf4

Browse files
committed
fix: authn method flag
1 parent aebbbcc commit 2aadbf4

File tree

6 files changed

+15
-6
lines changed

6 files changed

+15
-6
lines changed

docs/v1/apidocs.swagger.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"info": {
44
"title": "Permify API",
55
"description": "Permify is an open-source authorization service for creating and maintaining fine-grained authorizations across your individual applications and services. Permify converts authorization data as relational tuples into a database you point at. We called that database a Write Database (WriteDB) and it behaves as a centralized data source for your authorization system. You can model of your authorization with Permify's DSL - Permify Schema - and perform access checks with a single API call anywhere on your stack. Access decisions made according to stored relational tuples.",
6-
"version": "v0.3.0",
6+
"version": "v0.3.3",
77
"contact": {
88
"name": "API Support",
99
"url": "https://github.com/Permify/permify/issues",

example.config.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,10 @@ profiler:
2121
port: 6060
2222

2323
authn:
24+
enabled: true
2425
method: preshared
25-
enabled: false
26-
keys: []
26+
preshared:
27+
keys: []
2728

2829
tracer:
2930
exporter: 'zipkin'

internal/info.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ package internal
22

33
const (
44
// Version is the last release of the Permify (e.g. v0.1.0)
5-
Version = "v0.3.1"
5+
Version = "v0.3.3"
66

77
// Banner is the view for terminal.
88
Banner = `

pkg/cmd/flags/serve.go

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,14 @@ func RegisterServeFlags(cmd *cobra.Command) {
132132
panic(err)
133133
}
134134

135+
flags.String("authn-method", conf.Authn.Method, "server authentication method")
136+
if err = viper.BindPFlag("authn.method", flags.Lookup("authn-method")); err != nil {
137+
panic(err)
138+
}
139+
if err = viper.BindEnv("authn.method", "PERMIFY_AUTHN_METHOD"); err != nil {
140+
panic(err)
141+
}
142+
135143
flags.StringSlice("authn-preshared-keys", conf.Authn.Preshared.Keys, "preshared key/keys for server authentication")
136144
if err = viper.BindPFlag("authn.preshared.keys", flags.Lookup("authn-preshared-keys")); err != nil {
137145
panic(err)

pkg/pb/base/v1/openapi.pb.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

proto/base/v1/openapi.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ option (grpc.gateway.protoc_gen_openapiv2.options.openapiv2_swagger) = {
99
info: {
1010
title: "Permify API";
1111
description: "Permify is an open-source authorization service for creating and maintaining fine-grained authorizations across your individual applications and services. Permify converts authorization data as relational tuples into a database you point at. We called that database a Write Database (WriteDB) and it behaves as a centralized data source for your authorization system. You can model of your authorization with Permify's DSL - Permify Schema - and perform access checks with a single API call anywhere on your stack. Access decisions made according to stored relational tuples.";
12-
version: "v0.3.0";
12+
version: "v0.3.3";
1313
contact: {
1414
name: "API Support";
1515
url: "https://github.com/Permify/permify/issues";

0 commit comments

Comments
 (0)