mirror of
				https://github.com/Mastermindzh/react-starter-kit.git
				synced 2025-11-04 10:48:54 +01:00 
			
		
		
		
	Added react-oidc (use demo/demo)
Added an example of an authentication protected page (tenders) Added an example with the built in proxy (to combat CORS) (tendersguru)
This commit is contained in:
		@@ -1,6 +1,24 @@
 | 
			
		||||
const defaultConfig = {
 | 
			
		||||
  version: "0.1.0",
 | 
			
		||||
  name: "React-starter-kit",
 | 
			
		||||
  // oidc: {
 | 
			
		||||
  //   url: "private_url",
 | 
			
		||||
  //   realm: "inforit",
 | 
			
		||||
  //   clientId: "react-base",
 | 
			
		||||
  //   scope: "openid profile email",
 | 
			
		||||
  //   redirectUri: "http://localhost:3000/authentication/callback",
 | 
			
		||||
  //   silentRedirectUri: "http://localhost:3000/authentication/silent-callback",
 | 
			
		||||
  //   serviceWorkerOnly: false,
 | 
			
		||||
  // },
 | 
			
		||||
  oidc: {
 | 
			
		||||
    url: "https://sso.mastermindzh.tech/realms/public-tests",
 | 
			
		||||
    realm: "public-tests",
 | 
			
		||||
    clientId: "react-starter-kit",
 | 
			
		||||
    scope: "openid profile email",
 | 
			
		||||
    redirectUri: "http://localhost:3000/authentication/callback",
 | 
			
		||||
    silentRedirectUri: "http://localhost:3000/authentication/silent-callback",
 | 
			
		||||
    serviceWorkerOnly: false,
 | 
			
		||||
  },
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
// ignore this :)
 | 
			
		||||
 
 | 
			
		||||
@@ -10,7 +10,8 @@
 | 
			
		||||
  "nav": {
 | 
			
		||||
    "home": "home",
 | 
			
		||||
    "about": "about",
 | 
			
		||||
    "counter": "counter"
 | 
			
		||||
    "counter": "counter",
 | 
			
		||||
    "tenders": "tenders (with auth)"
 | 
			
		||||
  },
 | 
			
		||||
  "about": {
 | 
			
		||||
    "title": "About"
 | 
			
		||||
 
 | 
			
		||||
@@ -10,7 +10,8 @@
 | 
			
		||||
  "nav": {
 | 
			
		||||
    "home": "home",
 | 
			
		||||
    "about": "over ons",
 | 
			
		||||
    "counter": "teller"
 | 
			
		||||
    "counter": "teller",
 | 
			
		||||
    "tenders": "aanbestedingen (met auth)"
 | 
			
		||||
  },
 | 
			
		||||
  "about": {
 | 
			
		||||
    "title": "Over ons"
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user