Skip to content
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

Fix admin sp creation issue #38

Merged
merged 1 commit into from
Oct 13, 2020

Conversation

Thumimku
Copy link
Contributor

Purpose

Earlier we were unable to use this feature from super tenant because getting null object for super tenant, Here we resolve this issue by getting super tenant domain and super tenant admin by checking super tenant flow.

@Thumimku Thumimku changed the title fix admin sp creation issue Fix admin sp creation issue Oct 12, 2020
Tenant tenant = this.getTenantDomain();
String userName = tenant.getAdminName();
startTenantFlow(tenant.getDomain(), userName);
String userName = this.getTenantAdminName();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if (log.isDebugEnabled()) {
log.debug("Tenant admin name " + userName + " retrieved for tenant domain " + tenantDomain);
}
startTenantFlow(tenantDomain, userName);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ideally we should improve this to use the user who add the configuration instead of using tenant admin.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agreed. I created an issue to track it as improvement. #39

remove_this_from_private_method

remove_this_in_private_method
@darshanasbg darshanasbg merged commit 6c884f1 into wso2-extensions:master Oct 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants