Skip to content

Commit 9519b53

Browse files
Merge branch 'main' into fix/webhook_bug_389
2 parents 77e219d + e7cfaf4 commit 9519b53

File tree

4 files changed

+5
-6
lines changed

4 files changed

+5
-6
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM golang:1.19.5-alpine as go-builder
1+
FROM golang:1.21.1-alpine as go-builder
22
WORKDIR /authorizer
33
COPY server server
44
COPY Makefile .

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ Deploy production ready Authorizer instance using one click deployment options a
6868
| Railway.app | <a href="https://railway.app/new/template/nwXp1C?referralCode=FEF4uT"><img src="https://railway.app/button.svg" style="height: 44px" alt="Deploy on Railway"></a> | [docs](https://docs.authorizer.dev/deployment/railway) |
6969
| Heroku | <a href="https://heroku.com/deploy?template=https://github.com/authorizerdev/authorizer-heroku"><img src="https://www.herokucdn.com/deploy/button.svg" alt="Deploy to Heroku" style="height: 44px;"></a> | [docs](https://docs.authorizer.dev/deployment/heroku) |
7070
| Render | [![Deploy to Render](https://render.com/images/deploy-to-render-button.svg)](https://render.com/deploy?repo=https://github.com/authorizerdev/authorizer-render) | [docs](https://docs.authorizer.dev/deployment/render) |
71+
| Koyeb | <a target="_blank" href="https://app.koyeb.com/deploy?name=authorizer&type=docker&image=docker.io/lakhansamani/authorizer&env[PORT]=8000&env[DATABASE_TYPE]=postgres&env[DATABASE_URL]=CHANGE_ME&ports=8000;http;/"><img alt="Deploy to Koyeb" src="https://www.koyeb.com/static/images/deploy/button.svg" /></a> | [docs](https://docs.authorizer.dev/deployment/koyeb) |
7172

7273
### Deploy Authorizer Using Source Code
7374

server/handlers/playground.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ func PlaygroundHandler() gin.HandlerFunc {
2121
disablePlayground, err := memorystore.Provider.GetBoolStoreEnvVariable(constants.EnvKeyDisablePlayGround)
2222
if err != nil {
2323
log.Debug("error while getting disable playground value")
24-
return
24+
disablePlayground = false
2525
}
2626

2727
// if env set to false, then check if logged in as super admin, if logged in then return graphql else 401 error

server/utils/webhook.go

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -83,10 +83,8 @@ func RegisterEvent(ctx context.Context, eventName string, authRecipe string, use
8383
}
8484
req.Header.Set("Content-Type", "application/json")
8585

86-
if webhook.Headers != nil {
87-
for key, val := range webhook.Headers {
88-
req.Header.Set(key, val.(string))
89-
}
86+
for key, val := range webhook.Headers {
87+
req.Header.Set(key, val.(string))
9088
}
9189

9290
client := &http.Client{Timeout: time.Second * 30}

0 commit comments

Comments
 (0)