Commit 41181613 authored by Clément's avatar Clément

Merge branch 'feature/cicd' into 'master'

feature: add ci/cd

See merge request !6
parents 8f65a140 b3555469
Pipeline #1925 passed with stage
in 27 seconds
---
image: node
stages:
- test
- release
test:
stage: test
script:
- echo 'Make your tests here !'
except:
- master
tags:
- sib
publish:
stage: release
before_script:
- npm install -g semantic-release @semantic-release/gitlab
script:
- semantic-release
only:
- master
tags:
- sib
{ {
"name": "sib-oidc", "name": "@startinblox/oidc",
"version": "1.0.0", "version": "0.0.0",
"description": "Allows your users to login via a given OIDC provider. ## Installation Add the following within the `<head>` of your HTML: ```html <script src=\"https://cdn.happy-dev.fr/oidc-client/oidc-client.min.js\"></script> <script src=\"https://cdn.happy-dev.fr/sib-oidc/sib-oidc.js\" data-authority=\"https://some-oidc-provider.gold/openid/\" data-client_id=\"833925\" data-redirect_uri=\"http://my-app.gold\" data-response_type=\"id_token token\" data-scope=\"openid profile email\" data-automaticSilentRenew=\"true\" data-loadUserInfo=\"true\" ></script> ```", "description": "Allows your users to login via a given OIDC provider.",
"main": "sib-oidc.js", "main": "sib-oidc.js",
"directories": {
"example": "examples"
},
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": { "repository": {
"type": "git", "type": "git",
"url": "git@git.happy-dev.fr:startinblox/framework/sib-oidc.git" "url": "git@git.happy-dev.fr:startinblox/framework/sib-oidc.git"
}, },
"keywords": [], "author": "Startinblox",
"author": "", "license": "MIT",
"license": "ISC", "release": {
"branch": "master",
"plugins": [
["@semantic-release/commit-analyzer", {
"preset": "angular",
"releaseRules": [
{"type": "major", "release": "major"},
{"type": "minor", "release": "minor"},
{"type": "/.*/", "release": "patch"}
]
}],
"@semantic-release/gitlab",
"@semantic-release/npm"
]
},
"publishConfig": {
"access": "public"
},
"dependencies": { "dependencies": {
"oidc-client": "^1.6.1" "oidc-client": "^1.6.1"
} }
......
{ import 'https://unpkg.com/oidc-client@1.6';
export default function install () {
const defaultSettings = { const defaultSettings = {
redirect_uri: location.origin, redirect_uri: location.origin,
// authority: 'https://test-paris.happy-dev.fr/openid/', // authority: 'https://test-paris.happy-dev.fr/openid/',
...@@ -58,3 +60,5 @@ ...@@ -58,3 +60,5 @@
} }
} }
} }
install();
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment