Skip to content
This repository has been archived by the owner on Apr 17, 2023. It is now read-only.

Commit

Permalink
Merge pull request #12 from aerogear/CRED_INTERFACE
Browse files Browse the repository at this point in the history
Renamed KeyloakCredentials to KeycloakCredentials
  • Loading branch information
ziccardi committed Mar 31, 2020
2 parents 17b21b5 + 0ce11e9 commit 826e4ca
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
@@ -1,6 +1,6 @@
{
"name": "@aerogear/unifiedpush-admin-client",
"version": "0.1.1",
"version": "0.1.2",
"description": "Client library used to admin UPS with code",
"author": "AeroGear Team<aerogear@googlegroups.com>",
"homepage": "http://aerogear.org",
Expand Down
6 changes: 3 additions & 3 deletions src/UnifiedPushAdminClient.ts
Expand Up @@ -16,7 +16,7 @@ export interface BasicCredentials {
/**
* Interface for keycloak credentials
*/
export interface KeyloakCredentials {
export interface KeycloakCredentials {
kcUrl: string; // Keycloak URL
username?: string;
password?: string;
Expand All @@ -29,12 +29,12 @@ export interface KeyloakCredentials {
export class UnifiedPushAdminClient {
private readonly apiURL: string;
private api: AxiosInstance;
private readonly credentials?: BasicCredentials | KeyloakCredentials;
private readonly credentials?: BasicCredentials | KeycloakCredentials;

private readonly applicationsAdmin = new ApplicationsAdmin();
private readonly variantsAdmin = new VariantsAdmin();

constructor(serverURL: string, credentials?: BasicCredentials | KeyloakCredentials) {
constructor(serverURL: string, credentials?: BasicCredentials | KeycloakCredentials) {
this.apiURL = `${serverURL}/rest`;
this.api = axios.create({ baseURL: this.apiURL });
this.credentials = credentials;
Expand Down

0 comments on commit 826e4ca

Please sign in to comment.