Skip to content

Commit

Permalink
Merge pull request #177 from schibsted/finnish-env
Browse files Browse the repository at this point in the history
Add Finnish env
  • Loading branch information
marjuszkiewicz authored Nov 9, 2020
2 parents 64d9c67 + 88d0307 commit e846cd2
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 11 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Changelog

## v4.2.0 (2020-11-09)

## New features
* Add Finnish env

## v4.1.0 (2020-11-03)

## New features
Expand Down
10 changes: 1 addition & 9 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@schibsted/account-sdk-browser",
"version": "4.1.0",
"version": "4.2.0",
"description": "Schibsted account SDK for browsers",
"main": "index.js",
"scripts": {
Expand Down
9 changes: 8 additions & 1 deletion src/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,18 +28,21 @@
* @prop {string} ENDPOINTS.SPiD.PRE - Staging environment
* @prop {string} ENDPOINTS.SPiD.PRO - Production environment Sweden
* @prop {string} ENDPOINTS.SPiD.PRO_NO - Production environment Norway
* @prop {string} ENDPOINTS.SPiD.PRO_FI - Production environment Finland
* @prop {object} ENDPOINTS.BFF - Endpoints used with new GDPR-compliant web flows
* @prop {string} ENDPOINTS.BFF.LOCAL - Local endpoint (for Identity team)
* @prop {string} ENDPOINTS.BFF.DEV - Dev environment (for Identity team)
* @prop {string} ENDPOINTS.BFF.PRE - Staging environment
* @prop {string} ENDPOINTS.BFF.PRO - Production environment Sweden
* @prop {string} ENDPOINTS.BFF.PRO_NO - Production environment Norway
* @prop {string} ENDPOINTS.BFF.PRO_FI - Production environment Finland
* @prop {object} ENDPOINTS.SESSION_SERVICE - Endpoints to check global user session data
* @prop {string} ENDPOINTS.SESSION_SERVICE.LOCAL - Local endpoint (for Identity team)
* @prop {string} ENDPOINTS.SESSION_SERVICE.DEV - Dev environment (for Identity team)
* @prop {string} ENDPOINTS.SESSION_SERVICE.PRE - Staging environment
* @prop {string} ENDPOINTS.SESSION_SERVICE.PRO - Production environment Sweden
* @prop {string} ENDPOINTS.SESSION_SERVICE.PRO_NO - Production environment Norway
* @prop {string} ENDPOINTS.SESSION_SERVICE.PRO_FI - Production environment Finland
*/
const config = {
ENDPOINTS: {
Expand All @@ -48,21 +51,24 @@ const config = {
DEV: 'https://identity-dev.schibsted.com',
PRE: 'https://identity-pre.schibsted.com',
PRO: 'https://login.schibsted.com',
PRO_NO: 'https://payment.schibsted.no'
PRO_NO: 'https://payment.schibsted.no',
PRO_FI: 'https://login.schibsted.fi',
},
BFF: {
LOCAL: 'http://id.localhost/authn/',
DEV: 'https://identity-dev.schibsted.com/authn/',
PRE: 'https://identity-pre.schibsted.com/authn/',
PRO: 'https://login.schibsted.com/authn/',
PRO_NO: 'https://payment.schibsted.no/authn/',
PRO_FI: 'https://login.schibsted.fi/authn/',
},
SESSION_SERVICE: {
LOCAL: 'http://session-service.id.localhost',
DEV: 'https://session-service.identity-dev.schibsted.com',
PRE: 'https://session-service.identity-pre.schibsted.com',
PRO: 'https://session-service.login.schibsted.com',
PRO_NO: 'https://session-service.payment.schibsted.no',
PRO_FI: 'https://session-service.login.schibsted.fi',
},
},
NAMESPACE: {
Expand All @@ -71,6 +77,7 @@ const config = {
PRE: 'schibsted.com',
PRO: 'schibsted.com',
PRO_NO: 'spid.no',
PRO_FI: 'schibsted.fi',
}
};

Expand Down

0 comments on commit e846cd2

Please sign in to comment.