mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
Merge remote-tracking branch 'apache/4.18' into main
This commit is contained in:
commit
82a6a1f6c4
@ -111,13 +111,14 @@ public class CreateNetworkCmd extends BaseCmd implements UserCmd {
|
||||
+ " - Account. Account means that only the account owner can use the network, domain - all accounts in the domain can use the network")
|
||||
private String aclType;
|
||||
|
||||
@Parameter(name = ApiConstants.ACCOUNT, type = CommandType.STRING, description = "account that will own the network")
|
||||
@Parameter(name = ApiConstants.ACCOUNT, type = CommandType.STRING, description = "Account that will own the network. Account should be under the selected domain")
|
||||
private String accountName;
|
||||
|
||||
@Parameter(name = ApiConstants.PROJECT_ID, type = CommandType.UUID, entityType = ProjectResponse.class, description = "an optional project for the network")
|
||||
private Long projectId;
|
||||
|
||||
@Parameter(name = ApiConstants.DOMAIN_ID, type = CommandType.UUID, entityType = DomainResponse.class, description = "domain ID of the account owning a network")
|
||||
@Parameter(name = ApiConstants.DOMAIN_ID, type = CommandType.UUID, entityType = DomainResponse.class, description = "domain ID of the account owning a network. " +
|
||||
"If no account is provided then network will be assigned to the caller account and domain")
|
||||
private Long domainId;
|
||||
|
||||
@Parameter(name = ApiConstants.SUBDOMAIN_ACCESS,
|
||||
|
||||
@ -55,9 +55,10 @@ import org.opensaml.saml2.core.Issuer;
|
||||
import org.opensaml.saml2.core.Response;
|
||||
import org.opensaml.saml2.core.StatusCode;
|
||||
import org.opensaml.saml2.encryption.Decrypter;
|
||||
import org.opensaml.saml2.encryption.EncryptedElementTypeEncryptedKeyResolver;
|
||||
import org.opensaml.xml.ConfigurationException;
|
||||
import org.opensaml.xml.encryption.ChainingEncryptedKeyResolver;
|
||||
import org.opensaml.xml.encryption.DecryptionException;
|
||||
import org.opensaml.xml.encryption.EncryptedKeyResolver;
|
||||
import org.opensaml.xml.encryption.InlineEncryptedKeyResolver;
|
||||
import org.opensaml.xml.io.UnmarshallingException;
|
||||
import org.opensaml.xml.security.SecurityHelper;
|
||||
@ -253,7 +254,9 @@ public class SAML2LoginAPIAuthenticatorCmd extends BaseCmd implements APIAuthent
|
||||
Credential credential = SecurityHelper.getSimpleCredential(idpMetadata.getEncryptionCertificate().getPublicKey(),
|
||||
spMetadata.getKeyPair().getPrivate());
|
||||
StaticKeyInfoCredentialResolver keyInfoResolver = new StaticKeyInfoCredentialResolver(credential);
|
||||
EncryptedKeyResolver keyResolver = new InlineEncryptedKeyResolver();
|
||||
ChainingEncryptedKeyResolver keyResolver = new ChainingEncryptedKeyResolver();
|
||||
keyResolver.getResolverChain().add(new InlineEncryptedKeyResolver());
|
||||
keyResolver.getResolverChain().add(new EncryptedElementTypeEncryptedKeyResolver());
|
||||
Decrypter decrypter = new Decrypter(null, keyInfoResolver, keyResolver);
|
||||
decrypter.setRootInNewDocument(true);
|
||||
List<EncryptedAssertion> encryptedAssertions = processedSAMLResponse.getEncryptedAssertions();
|
||||
|
||||
@ -1402,6 +1402,7 @@ public class NetworkServiceImpl extends ManagerBase implements NetworkService, C
|
||||
if ((cmd.getAccountName() != null && domainId != null) || cmd.getProjectId() != null) {
|
||||
owner = _accountMgr.finalizeOwner(caller, cmd.getAccountName(), domainId, cmd.getProjectId());
|
||||
} else {
|
||||
s_logger.info(String.format("Assigning the network to caller:%s because either projectId or accountname and domainId are not provided", caller.getAccountName()));
|
||||
owner = caller;
|
||||
}
|
||||
|
||||
|
||||
@ -167,6 +167,10 @@
|
||||
|
||||
<a-tag>source-nat</a-tag>
|
||||
</span>
|
||||
<span v-if="record.isstaticnat">
|
||||
|
||||
<a-tag>static-nat</a-tag>
|
||||
</span>
|
||||
</template>
|
||||
<template #ip6address="{ text, record }" href="javascript:;">
|
||||
<span>{{ ipV6Address(text, record) }}</span>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user