From c8b58293161bd1e471510ae183e01ab442854bbe Mon Sep 17 00:00:00 2001 From: olegfomenko2002 Date: Thu, 15 Feb 2024 12:09:12 +0200 Subject: [PATCH] fixed project name --- Dockerfile | 8 ++++---- README.md | 12 ++++++------ docs/.redoclyrc | 2 +- docs/package-lock.json | 4 ++-- docs/package.json | 2 +- docs/spec/openapi.yaml | 4 ++-- docs/web/index.hbs | 2 +- docs/web/index.html | 2 +- generate.sh | 4 ++-- go.mod | 5 +---- go.sum | 11 ----------- internal/cli/main.go | 6 +++--- internal/config/main.go | 6 +++--- internal/cookies/main.go | 2 +- internal/service/handlers/authorize.go | 6 +++--- internal/service/handlers/challenge.go | 4 ++-- internal/service/handlers/ctx.go | 6 +++--- internal/service/handlers/refresh.go | 4 ++-- internal/service/handlers/validate.go | 4 ++-- internal/service/main.go | 8 ++++---- internal/service/middleware/main.go | 6 +++--- internal/service/requests/authorize.go | 2 +- internal/service/router.go | 8 ++++---- internal/zkp/main.go | 2 +- main.go | 2 +- pkg/auth/client.go | 8 ++++---- pkg/auth/grants.go | 2 +- pkg/auth/main.go | 2 +- pkg/bearer.go | 2 +- werf.yaml | 18 +++++++++--------- 30 files changed, 70 insertions(+), 84 deletions(-) diff --git a/Dockerfile b/Dockerfile index ae20335..320f01b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -2,16 +2,16 @@ FROM golang:1.20-alpine as buildbase RUN apk add git build-base -WORKDIR /go/src/github.com/rarimo/rarime-auth-svc +WORKDIR /go/src/github.com/rarimo/auth-svc COPY vendor . COPY . . -RUN GOOS=linux go build -o /usr/local/bin/rarime-auth-svc /go/src/github.com/rarimo/rarime-auth-svc +RUN GOOS=linux go build -o /usr/local/bin/auth-svc /go/src/github.com/rarimo/auth-svc FROM alpine:3.9 -COPY --from=buildbase /usr/local/bin/rarime-auth-svc /usr/local/bin/rarime-auth-svc +COPY --from=buildbase /usr/local/bin/auth-svc /usr/local/bin/auth-svc RUN apk add --no-cache ca-certificates -ENTRYPOINT ["rarime-auth-svc"] +ENTRYPOINT ["auth-svc"] diff --git a/README.md b/README.md index 8734aca..e3fd07b 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# rarime-auth-svc +# auth-svc [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT) @@ -27,7 +27,7 @@ package middleware import ( "net/http" - "github.com/rarimo/rarime-auth-svc/pkg/auth" + "github.com/rarimo/auth-svc/pkg/auth" "gitlab.com/distributed_lab/ape" "gitlab.com/distributed_lab/ape/problems" ) @@ -72,8 +72,8 @@ return ## Install ``` - git clone github.com/rarimo/rarime-auth-svc - cd rarime-auth-svc + git clone github.com/rarimo/auth-svc + cd auth-svc go build main.go export KV_VIPER_FILE=./config.yaml ./main run service @@ -107,8 +107,8 @@ Make sure that docker installed. use `docker run ` with `-p 8080:80` to expose port 80 to 8080 ``` - docker build -t github.com/rarimo/rarime-auth-svc . - docker run -e KV_VIPER_FILE=/config.yaml github.com/rarimo/rarime-auth-svc + docker build -t github.com/rarimo/auth-svc . + docker run -e KV_VIPER_FILE=/config.yaml github.com/rarimo/auth-svc ``` ## Running from Source diff --git a/docs/.redoclyrc b/docs/.redoclyrc index f5aefbd..4380f9e 100644 --- a/docs/.redoclyrc +++ b/docs/.redoclyrc @@ -1,5 +1,5 @@ -apiTitle: rarime-auth-svc +apiTitle: auth-svc splitSpec: true codeSamples: false swaggerUI: true diff --git a/docs/package-lock.json b/docs/package-lock.json index 3ad5a29..14d7817 100644 --- a/docs/package-lock.json +++ b/docs/package-lock.json @@ -1,11 +1,11 @@ { - "name": "rarime-auth-svc", + "name": "auth-svc", "version": "1.0.0", "lockfileVersion": 3, "requires": true, "packages": { "": { - "name": "rarime-auth-svc", + "name": "auth-svc", "version": "1.0.0", "dependencies": { "@tokend/redoc-cli": "^0.9.9", diff --git a/docs/package.json b/docs/package.json index 1eb23ec..6254261 100644 --- a/docs/package.json +++ b/docs/package.json @@ -1,5 +1,5 @@ { - "name": "rarime-auth-svc", + "name": "auth-svc", "version": "1.0.0", "dependencies": { "@tokend/redoc-cli": "^0.9.9", diff --git a/docs/spec/openapi.yaml b/docs/spec/openapi.yaml index dd17c89..e6d9a0e 100644 --- a/docs/spec/openapi.yaml +++ b/docs/spec/openapi.yaml @@ -1,8 +1,8 @@ openapi: 3.0.0 info: version: 1.0.0 - title: rarime-auth-svc + title: auth-svc description: '' servers: - - url: 'https://api.orgs.app.stage.rarime.com/integrations/rarime-auth-svc' + - url: 'https://api.orgs.app.stage.rarime.com/integrations/auth-svc' description: RariMe Stage envirinment diff --git a/docs/web/index.hbs b/docs/web/index.hbs index 0da751e..a0985da 100644 --- a/docs/web/index.hbs +++ b/docs/web/index.hbs @@ -3,7 +3,7 @@ - rarime-auth-svc Service Documentation + auth-svc Service Documentation