-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* upgrade-iridium-client * remove client settings
- Loading branch information
1 parent
81189ef
commit 5c5fa0a
Showing
51 changed files
with
133 additions
and
751 deletions.
There are no files selected for viewing
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
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
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
13 changes: 7 additions & 6 deletions
13
...src/app/components/dashboard/content/login-box-overview/login-box-overview.component.html
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
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
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
5 changes: 1 addition & 4 deletions
5
projects/iridium-ui/src/app/components/register/register.component.ts
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
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
5 changes: 1 addition & 4 deletions
5
projects/iridium-ui/src/app/services/application-type.service.ts
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
15 changes: 15 additions & 0 deletions
15
projects/iridium-ui/src/app/services/domain/login-descriptor-response.ts
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
export class LoginDescriptorResponse { | ||
displayName: string = ''; | ||
|
||
usernamePlaceholder: string = ''; | ||
|
||
usernameLabel: string = ''; | ||
|
||
usernameType: string = ''; | ||
|
||
usernameErrorHint: string = ''; | ||
|
||
pageTitle: string = ''; | ||
|
||
tenantLogoUrl: string = ''; | ||
} |
5 changes: 5 additions & 0 deletions
5
projects/iridium-ui/src/app/services/domain/tenant-logo-update-request.ts
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
export class TenantLogoUpdateRequest { | ||
|
||
logoUrl: string = '' | ||
|
||
} |
16 changes: 16 additions & 0 deletions
16
projects/iridium-ui/src/app/services/login-descriptor.service.spec.ts
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import { TestBed } from '@angular/core/testing'; | ||
|
||
import { LoginDescriptorService } from './login-descriptor.service'; | ||
|
||
describe('LoginDescriptorService', () => { | ||
let service: LoginDescriptorService; | ||
|
||
beforeEach(() => { | ||
TestBed.configureTestingModule({}); | ||
service = TestBed.inject(LoginDescriptorService); | ||
}); | ||
|
||
it('should be created', () => { | ||
expect(service).toBeTruthy(); | ||
}); | ||
}); |
41 changes: 41 additions & 0 deletions
41
projects/iridium-ui/src/app/services/login-descriptor.service.ts
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
import { Injectable } from '@angular/core'; | ||
import { FormGroup } from '@angular/forms'; | ||
import { HttpClient, HttpHeaders } from '@angular/common/http'; | ||
import { TenantCreateResponse } from './domain/tenant-create-response'; | ||
import { environment } from '../../environments/environment'; | ||
import { TenantLogoUpdateRequest } from './domain/tenant-logo-update-request'; | ||
import { CookieService } from './cookie.service'; | ||
import { ApplicationResponse } from './domain/application-response'; | ||
import { LoginDescriptorResponse } from './domain/login-descriptor-response'; | ||
|
||
@Injectable({ | ||
providedIn: 'root' | ||
}) | ||
export class LoginDescriptorService { | ||
|
||
constructor(private http: HttpClient, private cookieService: CookieService) { } | ||
|
||
updateTenantLogo(formGroup: FormGroup, tenantId: string) { | ||
console.log('update ' + tenantId + 'with ' + formGroup.controls['tenantLogoUrl'].value) | ||
const request = new TenantLogoUpdateRequest(); | ||
request.logoUrl = formGroup.controls['tenantLogoUrl'].value; | ||
const token = this.cookieService.getCookie('iridium-token') | ||
const headers = new HttpHeaders({ | ||
Accept: 'application/vnd.iridium.id.tenant-logo-update-response.1+json', | ||
'Content-Type': 'application/vnd.iridium.id.tenant-logo-update-request.1+json', | ||
'Authorization': 'Bearer ' + token | ||
}) | ||
const options = { headers: headers } | ||
return this.http.put<TenantCreateResponse>(environment.iridium.domain + `tenants/${tenantId}/login-descriptors`, request, options).pipe() | ||
} | ||
|
||
get(tenantId: string) { | ||
const token = this.cookieService.getCookie('iridium-token') | ||
const headers = new HttpHeaders({ | ||
'Accept': 'application/vnd.iridium.id.login-descriptor-response.1+json', | ||
'Authorization': 'Bearer ' + token | ||
}) | ||
const options = { headers: headers } | ||
return this.http.get<LoginDescriptorResponse>(environment.iridium.domain + `tenants/${tenantId}/login-descriptors`, options) | ||
} | ||
} |
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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.