Unauthorized
10 |You do not have access to this area.
11 |├── AngularOIDC ├── src │ ├── assets │ │ ├── .gitkeep │ │ ├── favicon.ico │ │ └── img │ │ │ ├── avatars │ │ │ ├── 1.jpg │ │ │ ├── 2.jpg │ │ │ ├── 3.jpg │ │ │ ├── 4.jpg │ │ │ ├── 5.jpg │ │ │ ├── 6.jpg │ │ │ ├── 7.jpg │ │ │ └── 8.jpg │ │ │ └── brand │ │ │ ├── sygnet.svg │ │ │ └── logo.svg │ ├── app │ │ ├── app.component.css │ │ ├── views │ │ │ ├── cotacao │ │ │ │ ├── cotacao.component.scss │ │ │ │ ├── cotacao.module.ts │ │ │ │ ├── cotacao.component.ts │ │ │ │ ├── cotacao.service.ts │ │ │ │ └── cotacao.component.html │ │ │ ├── error │ │ │ │ ├── 404.component.ts │ │ │ │ ├── 500.component.ts │ │ │ │ ├── 404.component.html │ │ │ │ └── 500.component.html │ │ │ ├── base │ │ │ │ ├── cards.component.ts │ │ │ │ ├── tabs.component.ts │ │ │ │ ├── tables.component.ts │ │ │ │ ├── switches.component.ts │ │ │ │ ├── collapses.component.ts │ │ │ │ ├── tooltips.component.ts │ │ │ │ ├── popovers.component.ts │ │ │ │ ├── forms.component.ts │ │ │ │ ├── paginations.component.ts │ │ │ │ ├── carousels.component.ts │ │ │ │ ├── collapses.component.html │ │ │ │ ├── progress.component.ts │ │ │ │ ├── base.module.ts │ │ │ │ ├── progress.component.html │ │ │ │ ├── base-routing.module.ts │ │ │ │ └── paginations.component.html │ │ │ ├── icons │ │ │ │ ├── flags.component.ts │ │ │ │ ├── coreui-icons.component.ts │ │ │ │ ├── font-awesome.component.ts │ │ │ │ ├── simple-line-icons.component.ts │ │ │ │ ├── icons.module.ts │ │ │ │ └── icons-routing.module.ts │ │ │ ├── buttons │ │ │ │ ├── buttons.component.ts │ │ │ │ ├── brand-buttons.component.ts │ │ │ │ ├── buttons.module.ts │ │ │ │ ├── dropdowns.component.ts │ │ │ │ └── buttons-routing.module.ts │ │ │ ├── notifications │ │ │ │ ├── badges.component.ts │ │ │ │ ├── modals.component.ts │ │ │ │ ├── notifications.module.ts │ │ │ │ ├── notifications-routing.module.ts │ │ │ │ ├── alerts.component.ts │ │ │ │ └── badges.component.html │ │ │ ├── theme │ │ │ │ ├── typography.component.ts │ │ │ │ ├── theme.module.ts │ │ │ │ ├── theme-routing.module.ts │ │ │ │ └── colors.component.ts │ │ │ ├── unauthorized │ │ │ │ ├── unauthorized.component.ts │ │ │ │ └── unauthorized.component.html │ │ │ ├── register │ │ │ │ ├── register.component.ts │ │ │ │ └── register.component.html │ │ │ ├── login │ │ │ │ ├── login.component.ts │ │ │ │ ├── login-callback.component.ts │ │ │ │ └── login.component.html │ │ │ ├── chartjs │ │ │ │ ├── chartjs.module.ts │ │ │ │ ├── chartjs-routing.module.ts │ │ │ │ ├── chartjs.component.ts │ │ │ │ └── chartjs.component.html │ │ │ ├── widgets │ │ │ │ ├── widgets-routing.module.ts │ │ │ │ └── widgets.module.ts │ │ │ └── dashboard │ │ │ │ ├── dashboard-routing.module.ts │ │ │ │ └── dashboard.module.ts │ │ ├── containers │ │ │ ├── index.ts │ │ │ └── default-layout │ │ │ │ ├── index.ts │ │ │ │ └── default-layout.component.ts │ │ ├── shared │ │ │ └── models │ │ │ │ └── moedas.model.ts │ │ ├── core │ │ │ └── auth │ │ │ │ ├── auth.config.ts │ │ │ │ └── auth.guard.ts │ │ ├── app.component.spec.ts │ │ ├── app.component.html │ │ ├── app.component.ts │ │ ├── app.module.ts │ │ ├── app.routing.ts │ │ └── _nav.ts │ ├── scss │ │ ├── _variables.scss │ │ ├── _custom.scss │ │ ├── vendors │ │ │ ├── _variables.scss │ │ │ └── chart.js │ │ │ │ └── chart.scss │ │ └── style.scss │ ├── environments │ │ ├── environment.prod.ts │ │ └── environment.ts │ ├── typings.d.ts │ ├── tsconfig.app.json │ ├── tsconfig.spec.json │ ├── main.ts │ ├── test.ts │ ├── index.html │ └── polyfills.ts ├── e2e │ ├── tsconfig.e2e.json │ ├── app.po.ts │ └── app.e2e-spec.ts ├── .editorconfig ├── tsconfig.json ├── protractor.conf.js ├── karma.conf.js ├── package.json ├── tslint.json └── angular.json ├── IdentityServer4AngularOIDC ├── wwwroot │ ├── js │ │ ├── site.min.js │ │ ├── signin-redirect.js │ │ ├── signout-redirect.js │ │ └── site.js │ ├── icon.jpg │ ├── icon.png │ ├── favicon.ico │ ├── lib │ │ ├── bootstrap │ │ │ ├── fonts │ │ │ │ ├── glyphicons-halflings-regular.eot │ │ │ │ ├── glyphicons-halflings-regular.ttf │ │ │ │ ├── glyphicons-halflings-regular.woff │ │ │ │ └── glyphicons-halflings-regular.woff2 │ │ │ ├── dist │ │ │ │ ├── fonts │ │ │ │ │ ├── glyphicons-halflings-regular.eot │ │ │ │ │ ├── glyphicons-halflings-regular.ttf │ │ │ │ │ ├── glyphicons-halflings-regular.woff │ │ │ │ │ └── glyphicons-halflings-regular.woff2 │ │ │ │ └── js │ │ │ │ │ └── npm.js │ │ │ ├── .bower.json │ │ │ └── LICENSE │ │ ├── jquery-validation-unobtrusive │ │ │ ├── .bower.json │ │ │ └── LICENSE.txt │ │ ├── jquery │ │ │ ├── .bower.json │ │ │ └── LICENSE.txt │ │ └── jquery-validation │ │ │ ├── .bower.json │ │ │ └── LICENSE.md │ └── css │ │ ├── site.min.css │ │ ├── site.css │ │ └── site.less ├── Views │ ├── _ViewStart.cshtml │ ├── _ViewImports.cshtml │ ├── Home │ │ ├── Privacy.cshtml │ │ ├── About.cshtml │ │ ├── Contact.cshtml │ │ └── Index.cshtml │ ├── Shared │ │ ├── _ValidationSummary.cshtml │ │ ├── Redirect.cshtml │ │ ├── Error.cshtml │ │ ├── _ValidationScriptsPartial.cshtml │ │ ├── _CookieConsentPartial.cshtml │ │ └── _Layout.cshtml │ ├── Account │ │ ├── Logout.cshtml │ │ ├── LoggedOut.cshtml │ │ └── Login.cshtml │ ├── Diagnostics │ │ └── Index.cshtml │ ├── Consent │ │ ├── _ScopeListItem.cshtml │ │ └── Index.cshtml │ └── Grants │ │ └── Index.cshtml ├── appsettings.json ├── appsettings.Development.json ├── Quickstart │ ├── Account │ │ ├── LogoutInputModel.cs │ │ ├── RedirectViewModel.cs │ │ ├── LogoutViewModel.cs │ │ ├── ExternalProvider.cs │ │ ├── LoginInputModel.cs │ │ ├── LoggedOutViewModel.cs │ │ ├── LoginViewModel.cs │ │ └── AccountOptions.cs │ ├── Home │ │ ├── ErrorViewModel.cs │ │ └── HomeController.cs │ ├── Consent │ │ ├── ConsentInputModel.cs │ │ ├── ScopeViewModel.cs │ │ ├── ProcessConsentResult.cs │ │ ├── ConsentViewModel.cs │ │ └── ConsentOptions.cs │ ├── Extensions.cs │ ├── Grants │ │ ├── GrantsViewModel.cs │ │ └── GrantsController.cs │ ├── Diagnostics │ │ ├── DiagnosticsController.cs │ │ └── DiagnosticsViewModel.cs │ ├── TestUsers.cs │ └── SecurityHeadersAttribute.cs ├── Server.csproj ├── Program.cs ├── Properties │ └── launchSettings.json ├── tempkey.rsa ├── Startup.cs └── Config.cs ├── xa9vfeliritv.png ├── identityserver4-with-oidc-angular.png ├── ProtectedResources ├── appsettings.json ├── appsettings.Development.json ├── ProtectedResources.csproj ├── Program.cs ├── Properties │ └── launchSettings.json ├── Model │ └── MoedaViewModel.cs ├── Controllers │ └── CotacaoController.cs └── Startup.cs ├── README.md ├── LICENSE ├── IdentityServer4AngularOIDC.sln └── .gitattributes /AngularOIDC/src/assets/.gitkeep: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /AngularOIDC/src/app/app.component.css: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /IdentityServer4AngularOIDC/wwwroot/js/site.min.js: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /AngularOIDC/src/app/views/cotacao/cotacao.component.scss: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /AngularOIDC/src/scss/_variables.scss: -------------------------------------------------------------------------------- 1 | // Variable overrides 2 | -------------------------------------------------------------------------------- /AngularOIDC/src/scss/_custom.scss: -------------------------------------------------------------------------------- 1 | // Here you can add other styles 2 | -------------------------------------------------------------------------------- /AngularOIDC/src/app/containers/index.ts: -------------------------------------------------------------------------------- 1 | export * from './default-layout'; 2 | -------------------------------------------------------------------------------- /IdentityServer4AngularOIDC/Views/_ViewStart.cshtml: -------------------------------------------------------------------------------- 1 | @{ 2 | Layout = "_Layout"; 3 | } 4 | -------------------------------------------------------------------------------- /AngularOIDC/src/app/containers/default-layout/index.ts: -------------------------------------------------------------------------------- 1 | export * from './default-layout.component'; 2 | -------------------------------------------------------------------------------- /xa9vfeliritv.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brunobritodev/IdentityServer4AngularOIDC/HEAD/xa9vfeliritv.png -------------------------------------------------------------------------------- /AngularOIDC/src/environments/environment.prod.ts: -------------------------------------------------------------------------------- 1 | export const environment = { 2 | production: true 3 | }; 4 | -------------------------------------------------------------------------------- /AngularOIDC/src/assets/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brunobritodev/IdentityServer4AngularOIDC/HEAD/AngularOIDC/src/assets/favicon.ico -------------------------------------------------------------------------------- /AngularOIDC/src/typings.d.ts: -------------------------------------------------------------------------------- 1 | /* SystemJS module definition */ 2 | declare var module: NodeModule; 3 | interface NodeModule { 4 | id: string; 5 | } 6 | -------------------------------------------------------------------------------- /IdentityServer4AngularOIDC/Views/_ViewImports.cshtml: -------------------------------------------------------------------------------- 1 | @using IdentityServer4.Quickstart.UI 2 | @addTagHelper *, Microsoft.AspNetCore.Mvc.TagHelpers 3 | -------------------------------------------------------------------------------- /identityserver4-with-oidc-angular.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brunobritodev/IdentityServer4AngularOIDC/HEAD/identityserver4-with-oidc-angular.png -------------------------------------------------------------------------------- /AngularOIDC/src/assets/img/avatars/1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brunobritodev/IdentityServer4AngularOIDC/HEAD/AngularOIDC/src/assets/img/avatars/1.jpg -------------------------------------------------------------------------------- /AngularOIDC/src/assets/img/avatars/2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brunobritodev/IdentityServer4AngularOIDC/HEAD/AngularOIDC/src/assets/img/avatars/2.jpg -------------------------------------------------------------------------------- /AngularOIDC/src/assets/img/avatars/3.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brunobritodev/IdentityServer4AngularOIDC/HEAD/AngularOIDC/src/assets/img/avatars/3.jpg -------------------------------------------------------------------------------- /AngularOIDC/src/assets/img/avatars/4.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brunobritodev/IdentityServer4AngularOIDC/HEAD/AngularOIDC/src/assets/img/avatars/4.jpg -------------------------------------------------------------------------------- /AngularOIDC/src/assets/img/avatars/5.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brunobritodev/IdentityServer4AngularOIDC/HEAD/AngularOIDC/src/assets/img/avatars/5.jpg -------------------------------------------------------------------------------- /AngularOIDC/src/assets/img/avatars/6.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brunobritodev/IdentityServer4AngularOIDC/HEAD/AngularOIDC/src/assets/img/avatars/6.jpg -------------------------------------------------------------------------------- /AngularOIDC/src/assets/img/avatars/7.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brunobritodev/IdentityServer4AngularOIDC/HEAD/AngularOIDC/src/assets/img/avatars/7.jpg -------------------------------------------------------------------------------- /AngularOIDC/src/assets/img/avatars/8.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brunobritodev/IdentityServer4AngularOIDC/HEAD/AngularOIDC/src/assets/img/avatars/8.jpg -------------------------------------------------------------------------------- /IdentityServer4AngularOIDC/wwwroot/icon.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brunobritodev/IdentityServer4AngularOIDC/HEAD/IdentityServer4AngularOIDC/wwwroot/icon.jpg -------------------------------------------------------------------------------- /IdentityServer4AngularOIDC/wwwroot/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brunobritodev/IdentityServer4AngularOIDC/HEAD/IdentityServer4AngularOIDC/wwwroot/icon.png -------------------------------------------------------------------------------- /IdentityServer4AngularOIDC/wwwroot/js/signin-redirect.js: -------------------------------------------------------------------------------- 1 | window.location.href = document.querySelector("meta[http-equiv=refresh]").getAttribute("data-url"); 2 | -------------------------------------------------------------------------------- /IdentityServer4AngularOIDC/wwwroot/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brunobritodev/IdentityServer4AngularOIDC/HEAD/IdentityServer4AngularOIDC/wwwroot/favicon.ico -------------------------------------------------------------------------------- /ProtectedResources/appsettings.json: -------------------------------------------------------------------------------- 1 | { 2 | "Logging": { 3 | "LogLevel": { 4 | "Default": "Warning" 5 | } 6 | }, 7 | "AllowedHosts": "*" 8 | } 9 | -------------------------------------------------------------------------------- /IdentityServer4AngularOIDC/appsettings.json: -------------------------------------------------------------------------------- 1 | { 2 | "Logging": { 3 | "LogLevel": { 4 | "Default": "Warning" 5 | } 6 | }, 7 | "AllowedHosts": "*" 8 | } 9 | -------------------------------------------------------------------------------- /IdentityServer4AngularOIDC/Views/Home/Privacy.cshtml: -------------------------------------------------------------------------------- 1 | @{ 2 | ViewData["Title"] = "Privacy Policy"; 3 | } 4 |
Use this page to detail your site's privacy policy.
7 | -------------------------------------------------------------------------------- /AngularOIDC/src/scss/vendors/_variables.scss: -------------------------------------------------------------------------------- 1 | // Override Boostrap variables 2 | @import "../variables"; 3 | @import "node_modules/bootstrap/scss/mixins"; 4 | @import "node_modules/@coreui/coreui/scss/variables"; 5 | -------------------------------------------------------------------------------- /AngularOIDC/src/app/shared/models/moedas.model.ts: -------------------------------------------------------------------------------- 1 | export class Moedas { 2 | public id: number; 3 | public nome: string; 4 | public simbolo: string; 5 | public rank: number; 6 | public preco: number; 7 | } -------------------------------------------------------------------------------- /IdentityServer4AngularOIDC/Views/Home/About.cshtml: -------------------------------------------------------------------------------- 1 | @{ 2 | ViewData["Title"] = "About"; 3 | } 4 |Use this area to provide additional information.
8 | -------------------------------------------------------------------------------- /ProtectedResources/appsettings.Development.json: -------------------------------------------------------------------------------- 1 | { 2 | "Logging": { 3 | "LogLevel": { 4 | "Default": "Debug", 5 | "System": "Information", 6 | "Microsoft": "Information" 7 | } 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /IdentityServer4AngularOIDC/appsettings.Development.json: -------------------------------------------------------------------------------- 1 | { 2 | "Logging": { 3 | "LogLevel": { 4 | "Default": "Debug", 5 | "System": "Information", 6 | "Microsoft": "Information" 7 | } 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /AngularOIDC/src/app/views/error/404.component.ts: -------------------------------------------------------------------------------- 1 | import { Component } from '@angular/core'; 2 | 3 | @Component({ 4 | templateUrl: '404.component.html' 5 | }) 6 | export class P404Component { 7 | 8 | constructor() { } 9 | 10 | } 11 | -------------------------------------------------------------------------------- /AngularOIDC/src/app/views/error/500.component.ts: -------------------------------------------------------------------------------- 1 | import { Component } from '@angular/core'; 2 | 3 | @Component({ 4 | templateUrl: '500.component.html' 5 | }) 6 | export class P500Component { 7 | 8 | constructor() { } 9 | 10 | } 11 | -------------------------------------------------------------------------------- /IdentityServer4AngularOIDC/wwwroot/js/signout-redirect.js: -------------------------------------------------------------------------------- 1 | window.addEventListener("load", function () { 2 | var a = document.querySelector("a.PostLogoutRedirectUri"); 3 | if (a) { 4 | window.location = a.href; 5 | } 6 | }); 7 | -------------------------------------------------------------------------------- /AngularOIDC/src/app/views/base/cards.component.ts: -------------------------------------------------------------------------------- 1 | import { Component } from '@angular/core'; 2 | 3 | @Component({ 4 | templateUrl: 'cards.component.html' 5 | }) 6 | export class CardsComponent { 7 | 8 | constructor() { } 9 | 10 | } 11 | -------------------------------------------------------------------------------- /AngularOIDC/src/app/views/base/tabs.component.ts: -------------------------------------------------------------------------------- 1 | import { Component } from '@angular/core'; 2 | 3 | @Component({ 4 | templateUrl: 'tabs.component.html' 5 | }) 6 | export class TabsComponent { 7 | 8 | constructor() { } 9 | 10 | } 11 | -------------------------------------------------------------------------------- /AngularOIDC/src/app/views/icons/flags.component.ts: -------------------------------------------------------------------------------- 1 | import { Component } from '@angular/core'; 2 | 3 | @Component({ 4 | templateUrl: 'flags.component.html' 5 | }) 6 | export class FlagsComponent { 7 | 8 | constructor() { } 9 | 10 | } 11 | -------------------------------------------------------------------------------- /AngularOIDC/src/scss/style.scss: -------------------------------------------------------------------------------- 1 | // If you want to override variables do it here 2 | @import "variables"; 3 | 4 | // Import styles 5 | @import "~@coreui/coreui/scss/coreui"; 6 | 7 | // If you want to add something do it here 8 | @import "custom"; 9 | -------------------------------------------------------------------------------- /IdentityServer4AngularOIDC/wwwroot/lib/bootstrap/fonts/glyphicons-halflings-regular.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brunobritodev/IdentityServer4AngularOIDC/HEAD/IdentityServer4AngularOIDC/wwwroot/lib/bootstrap/fonts/glyphicons-halflings-regular.eot -------------------------------------------------------------------------------- /IdentityServer4AngularOIDC/wwwroot/lib/bootstrap/fonts/glyphicons-halflings-regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brunobritodev/IdentityServer4AngularOIDC/HEAD/IdentityServer4AngularOIDC/wwwroot/lib/bootstrap/fonts/glyphicons-halflings-regular.ttf -------------------------------------------------------------------------------- /IdentityServer4AngularOIDC/wwwroot/lib/bootstrap/fonts/glyphicons-halflings-regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brunobritodev/IdentityServer4AngularOIDC/HEAD/IdentityServer4AngularOIDC/wwwroot/lib/bootstrap/fonts/glyphicons-halflings-regular.woff -------------------------------------------------------------------------------- /AngularOIDC/src/app/views/base/tables.component.ts: -------------------------------------------------------------------------------- 1 | import { Component } from '@angular/core'; 2 | 3 | @Component({ 4 | templateUrl: 'tables.component.html' 5 | }) 6 | export class TablesComponent { 7 | 8 | constructor() { } 9 | 10 | } 11 | -------------------------------------------------------------------------------- /IdentityServer4AngularOIDC/wwwroot/lib/bootstrap/fonts/glyphicons-halflings-regular.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brunobritodev/IdentityServer4AngularOIDC/HEAD/IdentityServer4AngularOIDC/wwwroot/lib/bootstrap/fonts/glyphicons-halflings-regular.woff2 -------------------------------------------------------------------------------- /AngularOIDC/src/app/views/base/switches.component.ts: -------------------------------------------------------------------------------- 1 | import { Component } from '@angular/core'; 2 | 3 | @Component({ 4 | templateUrl: 'switches.component.html' 5 | }) 6 | export class SwitchesComponent { 7 | 8 | constructor() { } 9 | 10 | } 11 | -------------------------------------------------------------------------------- /AngularOIDC/src/app/views/buttons/buttons.component.ts: -------------------------------------------------------------------------------- 1 | import { Component } from '@angular/core'; 2 | 3 | @Component({ 4 | templateUrl: 'buttons.component.html' 5 | }) 6 | export class ButtonsComponent { 7 | 8 | constructor() { } 9 | 10 | } 11 | -------------------------------------------------------------------------------- /IdentityServer4AngularOIDC/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.eot: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brunobritodev/IdentityServer4AngularOIDC/HEAD/IdentityServer4AngularOIDC/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.eot -------------------------------------------------------------------------------- /IdentityServer4AngularOIDC/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brunobritodev/IdentityServer4AngularOIDC/HEAD/IdentityServer4AngularOIDC/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.ttf -------------------------------------------------------------------------------- /IdentityServer4AngularOIDC/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.woff: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brunobritodev/IdentityServer4AngularOIDC/HEAD/IdentityServer4AngularOIDC/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.woff -------------------------------------------------------------------------------- /AngularOIDC/src/app/views/notifications/badges.component.ts: -------------------------------------------------------------------------------- 1 | import { Component } from '@angular/core'; 2 | 3 | @Component({ 4 | templateUrl: 'badges.component.html' 5 | }) 6 | export class BadgesComponent { 7 | 8 | constructor() { } 9 | 10 | } 11 | -------------------------------------------------------------------------------- /AngularOIDC/src/app/views/theme/typography.component.ts: -------------------------------------------------------------------------------- 1 | import { Component } from '@angular/core'; 2 | 3 | @Component({ 4 | templateUrl: 'typography.component.html' 5 | }) 6 | export class TypographyComponent { 7 | 8 | constructor() { } 9 | 10 | } 11 | -------------------------------------------------------------------------------- /AngularOIDC/src/app/views/unauthorized/unauthorized.component.ts: -------------------------------------------------------------------------------- 1 | import { Component } from '@angular/core'; 2 | 3 | @Component({ 4 | selector: 'app-dashboard', 5 | templateUrl: 'unauthorized.component.html' 6 | }) 7 | export class UnauthorizedComponent { } 8 | -------------------------------------------------------------------------------- /IdentityServer4AngularOIDC/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.woff2: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/brunobritodev/IdentityServer4AngularOIDC/HEAD/IdentityServer4AngularOIDC/wwwroot/lib/bootstrap/dist/fonts/glyphicons-halflings-regular.woff2 -------------------------------------------------------------------------------- /AngularOIDC/src/app/views/icons/coreui-icons.component.ts: -------------------------------------------------------------------------------- 1 | import { Component } from '@angular/core'; 2 | 3 | @Component({ 4 | templateUrl: 'coreui-icons.component.html' 5 | }) 6 | export class CoreUIIconsComponent { 7 | 8 | constructor() { } 9 | 10 | } 11 | -------------------------------------------------------------------------------- /AngularOIDC/src/app/views/icons/font-awesome.component.ts: -------------------------------------------------------------------------------- 1 | import { Component } from '@angular/core'; 2 | 3 | @Component({ 4 | templateUrl: 'font-awesome.component.html' 5 | }) 6 | export class FontAwesomeComponent { 7 | 8 | constructor() { } 9 | 10 | } 11 | -------------------------------------------------------------------------------- /AngularOIDC/src/app/views/buttons/brand-buttons.component.ts: -------------------------------------------------------------------------------- 1 | import { Component } from '@angular/core'; 2 | 3 | @Component({ 4 | templateUrl: 'brand-buttons.component.html' 5 | }) 6 | export class BrandButtonsComponent { 7 | 8 | constructor() { } 9 | 10 | } 11 | -------------------------------------------------------------------------------- /IdentityServer4AngularOIDC/Views/Shared/_ValidationSummary.cshtml: -------------------------------------------------------------------------------- 1 | @if (ViewContext.ModelState.IsValid == false) 2 | { 3 |Once complete, you may close this tab
5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /AngularOIDC/.editorconfig: -------------------------------------------------------------------------------- 1 | # Editor configuration, see http://editorconfig.org 2 | root = true 3 | 4 | [*] 5 | charset = utf-8 6 | end_of_line = lf 7 | indent_size = 2 8 | indent_style = space 9 | insert_final_newline = true 10 | trim_trailing_whitespace = true 11 | 12 | [*.md] 13 | max_line_length = off 14 | trim_trailing_whitespace = false 15 | -------------------------------------------------------------------------------- /AngularOIDC/e2e/app.e2e-spec.ts: -------------------------------------------------------------------------------- 1 | import { CoreUIPage } from './app.po'; 2 | 3 | describe('core-ui App', function() { 4 | let page: CoreUIPage; 5 | 6 | beforeEach(() => { 7 | page = new CoreUIPage(); 8 | }); 9 | 10 | it('should display message saying app works', () => { 11 | page.navigateTo(); 12 | expect(page.getParagraphText()).toEqual('app works!'); 13 | }); 14 | }); 15 | -------------------------------------------------------------------------------- /AngularOIDC/src/tsconfig.app.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../tsconfig.json", 3 | "compilerOptions": { 4 | "outDir": "../out-tsc/app", 5 | "baseUrl": "./", 6 | "module": "es2015", 7 | "types": [], 8 | "paths": { 9 | "@angular/*": [ 10 | "../node_modules/@angular/*" 11 | ] 12 | } 13 | }, 14 | "exclude": [ 15 | "test.ts", 16 | "**/*.spec.ts" 17 | ] 18 | } 19 | -------------------------------------------------------------------------------- /AngularOIDC/src/app/core/auth/auth.config.ts: -------------------------------------------------------------------------------- 1 | import { AuthConfig } from 'angular-oauth2-oidc'; 2 | 3 | export const authConfig: AuthConfig = { 4 | 5 | issuer: 'http://localhost:5000', 6 | clientId: 'angularoidc', 7 | postLogoutRedirectUri: 'http://localhost:4200/', 8 | redirectUri: window.location.origin + "/login-callback", 9 | scope:"openid profile email apiFinanceiro", 10 | oidc: true, 11 | } -------------------------------------------------------------------------------- /AngularOIDC/src/tsconfig.spec.json: -------------------------------------------------------------------------------- 1 | { 2 | "extends": "../tsconfig.json", 3 | "compilerOptions": { 4 | "outDir": "../out-tsc/spec", 5 | "baseUrl": "./", 6 | "module": "commonjs", 7 | "types": [ 8 | "jasmine", 9 | "node" 10 | ] 11 | }, 12 | "files": [ 13 | "test.ts", 14 | "polyfills.ts" 15 | ], 16 | "include": [ 17 | "**/*.spec.ts", 18 | "**/*.d.ts" 19 | ] 20 | } 21 | -------------------------------------------------------------------------------- /IdentityServer4AngularOIDC/Quickstart/Account/LogoutInputModel.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) Brock Allen & Dominick Baier. All rights reserved. 2 | // Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information. 3 | 4 | 5 | namespace IdentityServer4.Quickstart.UI 6 | { 7 | public class LogoutInputModel 8 | { 9 | public string LogoutId { get; set; } 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /IdentityServer4AngularOIDC/Quickstart/Account/RedirectViewModel.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) Brock Allen & Dominick Baier. All rights reserved. 2 | // Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information. 3 | 4 | 5 | 6 | namespace IdentityServer4.Quickstart.UI 7 | { 8 | public class RedirectViewModel 9 | { 10 | public string RedirectUrl { get; set; } 11 | } 12 | } -------------------------------------------------------------------------------- /AngularOIDC/src/main.ts: -------------------------------------------------------------------------------- 1 | import { enableProdMode } from '@angular/core'; 2 | import { platformBrowserDynamic } from '@angular/platform-browser-dynamic'; 3 | 4 | import { AppModule } from './app/app.module'; 5 | import { environment } from './environments/environment'; 6 | 7 | if (environment.production) { 8 | enableProdMode(); 9 | } 10 | 11 | platformBrowserDynamic().bootstrapModule(AppModule) 12 | .catch(err => console.log(err)); 13 | -------------------------------------------------------------------------------- /IdentityServer4AngularOIDC/Quickstart/Account/LogoutViewModel.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) Brock Allen & Dominick Baier. All rights reserved. 2 | // Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information. 3 | 4 | 5 | namespace IdentityServer4.Quickstart.UI 6 | { 7 | public class LogoutViewModel : LogoutInputModel 8 | { 9 | public bool ShowLogoutPrompt { get; set; } = true; 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /IdentityServer4AngularOIDC/Quickstart/Home/ErrorViewModel.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) Brock Allen & Dominick Baier. All rights reserved. 2 | // Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information. 3 | 4 | 5 | using IdentityServer4.Models; 6 | 7 | namespace IdentityServer4.Quickstart.UI 8 | { 9 | public class ErrorViewModel 10 | { 11 | public ErrorMessage Error { get; set; } 12 | } 13 | } -------------------------------------------------------------------------------- /AngularOIDC/src/app/views/base/collapses.component.ts: -------------------------------------------------------------------------------- 1 | import { Component } from '@angular/core'; 2 | 3 | @Component({ 4 | templateUrl: 'collapses.component.html' 5 | }) 6 | export class CollapsesComponent { 7 | 8 | constructor() { } 9 | 10 | isCollapsed: boolean = false; 11 | 12 | collapsed(event: any): void { 13 | // console.log(event); 14 | } 15 | 16 | expanded(event: any): void { 17 | // console.log(event); 18 | } 19 | 20 | } 21 | -------------------------------------------------------------------------------- /AngularOIDC/src/app/views/login/login.component.ts: -------------------------------------------------------------------------------- 1 | import { Component } from '@angular/core'; 2 | import { OAuthService } from 'angular-oauth2-oidc'; 3 | 4 | @Component({ 5 | selector: 'app-dashboard', 6 | templateUrl: 'login.component.html' 7 | }) 8 | export class LoginComponent { 9 | constructor(private oauthService: OAuthService) { 10 | } 11 | 12 | public login() { 13 | this.oauthService.initImplicitFlow("login"); 14 | } 15 | 16 | } 17 | -------------------------------------------------------------------------------- /AngularOIDC/src/app/views/chartjs/chartjs.module.ts: -------------------------------------------------------------------------------- 1 | import { NgModule } from '@angular/core'; 2 | import { ChartsModule } from 'ng2-charts/ng2-charts'; 3 | 4 | import { ChartJSComponent } from './chartjs.component'; 5 | import { ChartJSRoutingModule } from './chartjs-routing.module'; 6 | 7 | @NgModule({ 8 | imports: [ 9 | ChartJSRoutingModule, 10 | ChartsModule 11 | ], 12 | declarations: [ ChartJSComponent ] 13 | }) 14 | export class ChartJSModule { } 15 | -------------------------------------------------------------------------------- /AngularOIDC/tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compileOnSave": false, 3 | "compilerOptions": { 4 | "outDir": "./dist/out-tsc", 5 | "sourceMap": true, 6 | "declaration": false, 7 | "moduleResolution": "node", 8 | "emitDecoratorMetadata": true, 9 | "experimentalDecorators": true, 10 | "target": "es5", 11 | "typeRoots": [ 12 | "node_modules/@types" 13 | ], 14 | "lib": [ 15 | "es2017", 16 | "dom" 17 | ] 18 | } 19 | } 20 | -------------------------------------------------------------------------------- /IdentityServer4AngularOIDC/Quickstart/Account/ExternalProvider.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) Brock Allen & Dominick Baier. All rights reserved. 2 | // Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information. 3 | 4 | 5 | namespace IdentityServer4.Quickstart.UI 6 | { 7 | public class ExternalProvider 8 | { 9 | public string DisplayName { get; set; } 10 | public string AuthenticationScheme { get; set; } 11 | } 12 | } -------------------------------------------------------------------------------- /IdentityServer4AngularOIDC/Server.csproj: -------------------------------------------------------------------------------- 1 |HTML!!!`;
17 | }
18 |
--------------------------------------------------------------------------------
/AngularOIDC/src/app/views/base/forms.component.ts:
--------------------------------------------------------------------------------
1 | import { Component } from '@angular/core';
2 |
3 | @Component({
4 | templateUrl: 'forms.component.html'
5 | })
6 | export class FormsComponent {
7 |
8 | constructor() { }
9 |
10 | isCollapsed: boolean = false;
11 | iconCollapse: string = "icon-arrow-up";
12 |
13 | collapsed(event: any): void {
14 | // console.log(event);
15 | }
16 |
17 | expanded(event: any): void {
18 | // console.log(event);
19 | }
20 |
21 | toggleCollapse(): void {
22 | this.isCollapsed = !this.isCollapsed;
23 | this.iconCollapse = this.isCollapsed ? "icon-arrow-down" : "icon-arrow-up";
24 | }
25 |
26 | }
27 |
--------------------------------------------------------------------------------
/IdentityServer4AngularOIDC/Quickstart/Account/LoginInputModel.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Brock Allen & Dominick Baier. All rights reserved.
2 | // Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.
3 |
4 |
5 | using System.ComponentModel.DataAnnotations;
6 |
7 | namespace IdentityServer4.Quickstart.UI
8 | {
9 | public class LoginInputModel
10 | {
11 | [Required]
12 | public string Username { get; set; }
13 | [Required]
14 | public string Password { get; set; }
15 | public bool RememberLogin { get; set; }
16 | public string ReturnUrl { get; set; }
17 | }
18 | }
--------------------------------------------------------------------------------
/AngularOIDC/src/app/views/icons/icons.module.ts:
--------------------------------------------------------------------------------
1 | import { NgModule } from '@angular/core';
2 |
3 | import { CoreUIIconsComponent } from './coreui-icons.component';
4 | import { FlagsComponent } from './flags.component';
5 | import { FontAwesomeComponent } from './font-awesome.component';
6 | import { SimpleLineIconsComponent } from './simple-line-icons.component';
7 |
8 | import { IconsRoutingModule } from './icons-routing.module';
9 |
10 | @NgModule({
11 | imports: [ IconsRoutingModule ],
12 | declarations: [
13 | CoreUIIconsComponent,
14 | FlagsComponent,
15 | FontAwesomeComponent,
16 | SimpleLineIconsComponent
17 | ]
18 | })
19 | export class IconsModule { }
20 |
--------------------------------------------------------------------------------
/IdentityServer4AngularOIDC/wwwroot/lib/jquery-validation-unobtrusive/LICENSE.txt:
--------------------------------------------------------------------------------
1 | Copyright (c) .NET Foundation. All rights reserved.
2 |
3 | Licensed under the Apache License, Version 2.0 (the "License"); you may not use
4 | these files except in compliance with the License. You may obtain a copy of the
5 | License at
6 |
7 | http://www.apache.org/licenses/LICENSE-2.0
8 |
9 | Unless required by applicable law or agreed to in writing, software distributed
10 | under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
11 | CONDITIONS OF ANY KIND, either express or implied. See the License for the
12 | specific language governing permissions and limitations under the License.
13 |
--------------------------------------------------------------------------------
/IdentityServer4AngularOIDC/wwwroot/lib/jquery/.bower.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "jquery",
3 | "main": "dist/jquery.js",
4 | "license": "MIT",
5 | "ignore": [
6 | "package.json"
7 | ],
8 | "keywords": [
9 | "jquery",
10 | "javascript",
11 | "browser",
12 | "library"
13 | ],
14 | "homepage": "https://github.com/jquery/jquery-dist",
15 | "version": "3.3.1",
16 | "_release": "3.3.1",
17 | "_resolution": {
18 | "type": "version",
19 | "tag": "3.3.1",
20 | "commit": "9e8ec3d10fad04748176144f108d7355662ae75e"
21 | },
22 | "_source": "https://github.com/jquery/jquery-dist.git",
23 | "_target": "^3.3.1",
24 | "_originalSource": "jquery",
25 | "_direct": true
26 | }
--------------------------------------------------------------------------------
/IdentityServer4AngularOIDC/Views/Account/Logout.cshtml:
--------------------------------------------------------------------------------
1 | @model LogoutViewModel
2 |
3 | Would you like to logout of IdentityServer?
11 | 19 |
3 |
4 | Example App - IdentityServer4 login through Angular and OpenId Connect
5 |
6 | * **Server Side**: ASP.NET Core with IdentityServer4
7 | * **Front-end**: Angular 6 with CoreUI template.
8 |
9 | Pre reqs
10 |
11 | * Net.Core 2.1
12 | * angular-cli 6+
13 |
14 | Techs:
15 |
16 | * ASP.NET Core
17 | * IdentityServer
18 | * angular-oauth2-oidc
19 | * Angular 6
20 | * CoreUI
21 |
22 | # How to run
23 |
24 | 1. Open IdentityServer4AngularOIDC.sln with Visual Studio and Run
25 | 2. Load Folder AngularOIDC with VSCode
26 | * Open terminas (CTRL + \`)
27 | * npm install
28 | * npm start
29 |
30 |
31 | More about on [ASP.NET Core - Autenticação utilizando Angular OIDC, CoreUI e IdentityServer4](https://www.brunobrito.net.br/implicity-angular-oidc-identityserver4/) - Portuguese only
32 |
--------------------------------------------------------------------------------
/AngularOIDC/src/app/views/base/carousels.component.ts:
--------------------------------------------------------------------------------
1 | import { Component } from '@angular/core';
2 | import { CarouselConfig } from 'ngx-bootstrap/carousel';
3 |
4 | @Component({
5 | templateUrl: 'carousels.component.html', providers: [
6 | { provide: CarouselConfig, useValue: { interval: 1500, noPause: true } }
7 | ]
8 | })
9 | export class CarouselsComponent {
10 |
11 | myInterval: number = 6000;
12 | slides: any[] = [];
13 | activeSlideIndex: number = 0;
14 | noWrapSlides: boolean = false;
15 |
16 | constructor() {
17 | for (let i = 0; i < 4; i++) {
18 | this.addSlide();
19 | }
20 | }
21 |
22 | addSlide(): void {
23 | this.slides.push({
24 | image: `https://lorempixel.com/900/500/sports/${this.slides.length % 8 + 1}/`
25 | });
26 | }
27 |
28 | removeSlide(index?: number): void {
29 | const toRemove = index ? index : this.activeSlideIndex;
30 | this.slides.splice(toRemove, 1);
31 | }
32 |
33 | }
34 |
--------------------------------------------------------------------------------
/AngularOIDC/src/app/views/login/login-callback.component.ts:
--------------------------------------------------------------------------------
1 | import { Component, OnInit } from '@angular/core';
2 | import { OAuthService, AuthConfig } from "angular-oauth2-oidc";
3 | import { Router } from "@angular/router";
4 | import { authConfig } from '../../core/auth/auth.config';
5 |
6 | @Component({
7 | template: ''
8 | })
9 | export class LoginCallbackComponent implements OnInit {
10 |
11 | constructor(private oauthService: OAuthService, private router: Router) {
12 | }
13 |
14 | ngOnInit() {
15 | this.oauthService.loadDiscoveryDocument().then(() => {
16 |
17 | // This method just tries to parse the token(s) within the url when
18 | // the auth-server redirects the user back to the web-app
19 | // It dosn't send the user the the login page
20 | this.oauthService.tryLogin({onTokenReceived: () => this.router.navigate(["/dashboard"])});
21 |
22 | });
23 |
24 | }
25 | }
--------------------------------------------------------------------------------
/IdentityServer4AngularOIDC/Quickstart/Grants/GrantsViewModel.cs:
--------------------------------------------------------------------------------
1 | // Copyright (c) Brock Allen & Dominick Baier. All rights reserved.
2 | // Licensed under the Apache License, Version 2.0. See LICENSE in the project root for license information.
3 |
4 |
5 | using System;
6 | using System.Collections.Generic;
7 |
8 | namespace IdentityServer4.Quickstart.UI
9 | {
10 | public class GrantsViewModel
11 | {
12 | public IEnumerableThe page you are looking for was not found.
9 |The page you are looking for is temporarily unavailable.
9 |16 | Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo 17 | consequat. 18 |
19 || Nome | 14 |Simbolo | 15 |Rank | 16 |Preco | 17 |
|---|---|---|---|
| {{cotacao.nome}} | 22 |{{cotacao.simbolo}} | 23 |{{cotacao.rank}} | 24 |USD {{ cotacao.preco | currency }} | 25 |
You do not have access to this area.
11 || HEX: | 18 |${rgbToHex(background)} | 19 |
| RGB: | 22 |${background} | 23 |
15 | IdentityServer publishes a 16 | discovery document 17 | where you can find metadata and links to all the endpoints, key material, etc. 18 |
19 |22 | Click here to manage your stored grants. 23 |
24 |29 | Here are links to the 30 | source code repository, 31 | and ready to use samples. 32 |
33 |Sign In to your account
11 |Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
26 | 27 |Create your account
10 |The selected page no: {{currentPage}}/{{smallnumPages}}
30 | Page: {{bigCurrentPage}} / {{numPages}}
53 |