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
const Config = { | |
clientID: '{YOUR_CLIENT_ID}', | |
domain:'{YOUR_DOMAIN}', | |
audience: '{YOUR_AUDIENCE}', | |
ingressIP: '{EXTERNAL_IP}' // Used to redirect after authentication | |
} |
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
analyzeSentence() { | |
fetch('/sentiment', { | |
method: 'POST', | |
headers: { | |
'Content-Type': 'application/json', | |
'Authorization': `Bearer ${auth.getAccessToken()}` // Access Token | |
}, | |
body: JSON.stringify({ sentence: this.textField.getValue() }) | |
}) | |
.then(response => response.json()) |
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
apiVersion: authentication.istio.io/v1alpha1 | |
kind: Policy | |
metadata: | |
name: auth-policy | |
spec: | |
targets: | |
- name: sa-web-app | |
- name: sa-feedback | |
origins: | |
- jwt: |
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
apiVersion: networking.istio.io/v1alpha3 | |
kind: VirtualService | |
metadata: | |
name: sa-logic | |
spec: | |
hosts: | |
- sa-logic | |
http: | |
- route: | |
- destination: |
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
apiVersion: networking.istio.io/v1alpha3 | |
kind: VirtualService | |
metadata: | |
name: sa-logic | |
spec: | |
hosts: | |
- sa-logic | |
http: | |
- route: | |
- destination: |
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
apiVersion: networking.istio.io/v1alpha3 | |
kind: VirtualService | |
metadata: | |
name: sa-logic | |
spec: | |
hosts: | |
- sa-logic | |
http: | |
- route: | |
- destination: |
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
apiVersion: networking.istio.io/v1alpha3 | |
kind: DestinationRule | |
metadata: | |
name: sa-logic | |
spec: | |
host: sa-logic # 1 | |
subsets: | |
- name: v1 # 2 | |
labels: | |
version: v1 # 3 |
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
apiVersion: networking.istio.io/v1alpha3 | |
kind: DestinationRule | |
metadata: | |
name: sa-frontend | |
spec: | |
host: sa-frontend | |
trafficPolicy: | |
loadBalancer: | |
consistentHash: | |
httpHeaderName: version # 1 |
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
kind: VirtualService | |
metadata: | |
name: sa-external-services | |
spec: | |
hosts: | |
- "*" | |
gateways: | |
- http-gateway # 1 | |
http: | |
- match: |
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
apiVersion: networking.istio.io/v1alpha3 | |
kind: Gateway | |
metadata: | |
name: http-gateway | |
spec: | |
selector: | |
istio: ingressgateway | |
servers: | |
- port: | |
number: 80 |