This file contains hidden or 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
{ | |
"title": "Tweets Search", | |
"rows": [ | |
{ | |
"title": "Options", | |
"height": "50px", | |
"editable": true, | |
"collapse": false, | |
"collapsable": true, | |
"panels": [ |
This file contains hidden or 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
import org.keycloak.representations.adapters.config.PolicyEnforcerConfig; | |
import org.springframework.boot.context.properties.ConfigurationPropertiesBinding; | |
import org.springframework.core.convert.converter.Converter; | |
import org.springframework.stereotype.Component; | |
/** | |
* @author laurent | |
*/ | |
@Component | |
@ConfigurationPropertiesBinding |
This file contains hidden or 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
[docker@knative ~]$ sudo su - | |
[root@knative ~]# iptables -L -n -v | |
Chain INPUT (policy ACCEPT 12729 packets, 3049K bytes) | |
pkts bytes target prot opt in out source destination | |
14114 854K KUBE-EXTERNAL-SERVICES all -- * * 0.0.0.0/0 0.0.0.0/0 ctstate NEW /* kubernetes externally-visible service portals */ | |
5292K 2513M KUBE-NODEPORT-NON-LOCAL all -- * * 0.0.0.0/0 0.0.0.0/0 /* Ensure that non-local NodePort traffic can flow */ | |
5328K 2641M KUBE-FIREWALL all -- * * 0.0.0.0/0 0.0.0.0/0 | |
Chain FORWARD (policy DROP 0 packets, 0 bytes) | |
pkts bytes target prot opt in out source destination |
This file contains hidden or 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
[root@knative ~]# iptables -L -n -v -t nat | |
Chain PREROUTING (policy ACCEPT 59 packets, 3932 bytes) | |
pkts bytes target prot opt in out source destination | |
96468 7113K KUBE-SERVICES all -- * * 0.0.0.0/0 0.0.0.0/0 /* kubernetes service portals */ | |
19155 1285K KUBE-PORTALS-CONTAINER all -- * * 0.0.0.0/0 0.0.0.0/0 /* handle ClusterIPs; NOTE: this must be before the NodePort rules */ | |
917 58684 DOCKER all -- * * 0.0.0.0/0 0.0.0.0/0 ADDRTYPE match dst-type LOCAL | |
884 56572 KUBE-NODEPORT-CONTAINER all -- * * 0.0.0.0/0 0.0.0.0/0 ADDRTYPE match dst-type LOCAL /* handle service NodePorts; NOTE: this must be the last rule in the chain */ | |
Chain INPUT (policy ACCEPT 1 packets, 72 bytes) | |
pkts bytes target prot opt in out source destination |
This file contains hidden or 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
//platformBrowserDynamic().bootstrapModule(AppModule) | |
var keycloak = window["Keycloak"](location.origin + '/assets/keycloak-config.json'); | |
keycloak.init({onLoad: 'login-required'}).success(function (authenticated) { | |
if (authenticated) { | |
window['keycloak'] = keycloak; | |
platformBrowserDynamic().bootstrapModule(AppModule) | |
.catch(err => console.log(err)); | |
} | |
}).error(function () { |
This file contains hidden or 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
import { Injectable } from '@angular/core'; | |
import { HttpEvent, HttpInterceptor, HttpHandler, HttpRequest } from '@angular/common/http'; | |
import { Observable } from 'rxjs'; | |
import { AuthenticationService } from "./auth.service"; | |
@Injectable() | |
export class AuthenticationHttpInterceptor implements HttpInterceptor { | |
constructor(protected authService: AuthenticationService) { } |
This file contains hidden or 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
keycloak.auth-server-url=${KEYCLOAK_URL:http://localhost:8180/auth} | |
keycloak.realm=fruits-catalog | |
keycloak.resource=fruits-catalog-app | |
keycloak.bearer-only=true | |
keycloak.ssl-required=external | |
keycloak.disable-trust-manager=true | |
keycloak.security-constraints[0].authRoles[0]=admin | |
keycloak.security-constraints[0].authRoles[1]=manager | |
keycloak.security-constraints[0].authRoles[2]=user |
This file contains hidden or 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
--- | |
openapi: 3.0.2 | |
info: | |
title: PetStore sample | |
version: 1.0.0 | |
description: A sample API that uses a petstore as an example to demonstrate features | |
in the OpenAPI 3.0 specification | |
termsOfService: http://swagger.io/terms/ | |
contact: | |
name: Swagger API Team |
This file contains hidden or 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
{ | |
"info": { | |
"_postman_id": "6d56a960-3eb3-429d-9a31-76602091a4eb", | |
"name": "API Pastry Copy", | |
"description": "version=1.2.0 - API definition of API Pastry sample app\n\nContact Support: \n{\n\nName : Laurent Broudoux\n\nEmail : [email protected]\n\n}", | |
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json" | |
}, | |
"item": [ | |
{ | |
"name": "pastry", |
This file contains hidden or 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
--- | |
openapi: 3.0.2 | |
info: | |
title: API Pastry - 2.0 | |
version: 2.0.0 | |
description: API definition of API Pastry sample app | |
contact: | |
name: Laurent Broudoux | |
url: http://github.com/lbroudoux | |
email: [email protected] |
OlderNewer