-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #31 from lalithkota/develop-mock-id
Created Blueprint for Mock ID Auth
- Loading branch information
Showing
9 changed files
with
53 additions
and
272 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,41 @@ | ||
name: Artifactory build upon a push | ||
name: MOSIP Token Seeder Docker Build upon push | ||
|
||
on: | ||
release: | ||
types: [published] | ||
push: | ||
branches: | ||
- '!release-branch' | ||
- master | ||
- 1.* | ||
- develop | ||
- MOSIP* | ||
- release* | ||
|
||
jobs: | ||
build-docker-mosip-token-seeder: | ||
strategy: | ||
matrix: | ||
include: | ||
- SERVICE_LOCATION: './' | ||
SERVICE_NAME: 'mosip-token-seeder' | ||
uses: mosip/kattu/.github/workflows/docker-build.yml@master | ||
with: | ||
SERVICE_LOCATION: ${{ matrix.SERVICE_LOCATION }} | ||
SERVICE_NAME: ${{ matrix.SERVICE_NAME }} | ||
secrets: | ||
DEV_NAMESPACE_DOCKER_HUB: ${{ secrets.DEV_NAMESPACE_DOCKER_HUB }} | ||
ACTOR_DOCKER_HUB: ${{ secrets.ACTOR_DOCKER_HUB }} | ||
RELEASE_DOCKER_HUB: ${{ secrets.RELEASE_DOCKER_HUB }} | ||
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK }} | ||
token-seeder-build: | ||
runs-on: ubuntu-latest | ||
env: | ||
NAMESPACE: ${{ secrets.dev_namespace_docker_hub }} | ||
SERVICE_NAME: mosip-token-seeder | ||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Setup branch and env | ||
run: | | ||
# Strip git ref prefix from version | ||
echo "BRANCH_NAME=$(echo ${{ github.ref }} | sed -e 's,.*/\(.*\),\1,')" >> $GITHUB_ENV | ||
- name: Docker build & push | ||
run: | | ||
IMAGE_ID=$NAMESPACE/$SERVICE_NAME | ||
# Change all uppercase to lowercase | ||
IMAGE_ID=$(echo $IMAGE_ID | tr '[A-Z]' '[a-z]') | ||
if [[ $BRANCH_NAME == master || $BRANCH_NAME == main ]]; then | ||
VERSION=latest | ||
else | ||
VERSION=$BRANCH_NAME | ||
fi | ||
echo IMAGE_ID=$IMAGE_ID | ||
echo VERSION=$VERSION | ||
echo "IMAGE_ID=$IMAGE_ID" >> $GITHUB_ENV | ||
echo "VERSION=$VERSION" >> $GITHUB_ENV | ||
docker build . --file Dockerfile --tag $IMAGE_ID:$VERSION | ||
- name: Docker login | ||
run: | | ||
echo "${{ secrets.release_docker_hub }}" | docker login -u ${{ secrets.actor_docker_hub }} --password-stdin | ||
- name: Docker push | ||
run: | | ||
docker push $IMAGE_ID:$VERSION |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
24 changes: 2 additions & 22 deletions
24
mosip_token_seeder/authenticator/authenticator-config.toml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,10 @@ | ||
[mosip_auth] | ||
timestamp_format = "%Y-%m-%dT%H:%M:%S" | ||
ida_auth_version = '1.0' | ||
ida_auth_request_id = 'mosip.identity.auth' | ||
ida_auth_env = 'Staging' | ||
authorization_header_constant = 'Authorization' | ||
# partner_apikey = | ||
# partner_misp_lk = | ||
# partner_id = | ||
skip_auth = true | ||
psut_hash_algo = 'SHA3_256' | ||
|
||
[mosip_auth_server] | ||
# ida_auth_domain_uri = | ||
# ida_auth_url = | ||
|
||
|
||
[crypto_encrypt] | ||
algorithm = '@none' | ||
symmetric_key_size = 256 | ||
symmetric_nonce_size = 128 | ||
symmetric_gcm_tag_size = 128 | ||
# certificate from the below path is used to encrypt the Auth Request. | ||
# encrypt_cert_path = | ||
|
||
[crypto_signature] | ||
algorithm = 'RS256' | ||
# sign_p12_file_path = | ||
# sign_p12_file_password = | ||
|
||
[logging] | ||
log_file_path = 'authenticator.log' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.