-
Notifications
You must be signed in to change notification settings - Fork 375
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Defines Auth multi-tenancy references in index.d.ts. #572
Conversation
src/index.d.ts
Outdated
* A tenant configuration provides information such as the type of tenant (lightweight or | ||
* full service), display name, tenant identifier and email authentication configuration. | ||
* For OIDC/SAML provider configuration management, `TenantAwareAuth` instances should | ||
* be used instead. When configuring these providers, note that tenants will inherit |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
instead of what?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed it.
src/index.d.ts
Outdated
|
||
/** | ||
* The current tenant type: `lightweight` or `full_service`. | ||
* Tenants that use separare billing and quota will require their own project and |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
separate
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
src/index.d.ts
Outdated
|
||
/** | ||
* Creates a new tenant. | ||
* When creating new tenants, tenants that use separare billing and quota will require their |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
separate
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
src/index.d.ts
Outdated
@@ -602,6 +602,10 @@ declare namespace admin.auth { | |||
* resets, password or email updates, etc). | |||
*/ | |||
tokensValidAfterTime?: string; | |||
|
|||
/** | |||
* The user's tenant identifier if available. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The ID of the tenant the user belongs to
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
src/index.d.ts
Outdated
@@ -727,6 +731,10 @@ declare namespace admin.auth { | |||
* `"google.com"`, `"twitter.com"`, or `"custom"`. | |||
*/ | |||
sign_in_provider: string; | |||
|
|||
/** | |||
* The user's tenant ID if available. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
src/index.d.ts
Outdated
interface Tenant { | ||
|
||
/** | ||
* The current tenant identifier. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you omit "current" here and throughout?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
src/index.d.ts
Outdated
passwordRequired?: boolean; | ||
}; | ||
} | ||
|
||
/** | ||
* Interface representing the properties to set on a new tenant to be created. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
... a new tenant.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
src/index.d.ts
Outdated
@@ -1820,18 +1933,101 @@ declare namespace admin.auth { | |||
): Promise<admin.auth.AuthProviderConfig>; | |||
} | |||
|
|||
/** | |||
* Tenant aware `Auth` interface used for managing user, configuring SAML/OIDC providers, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tenant-aware
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
src/index.d.ts
Outdated
@@ -1820,18 +1933,101 @@ declare namespace admin.auth { | |||
): Promise<admin.auth.AuthProviderConfig>; | |||
} | |||
|
|||
/** | |||
* Tenant aware `Auth` interface used for managing user, configuring SAML/OIDC providers, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
users
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done
Defines Auth multi-tenancy references in index.d.ts.