ApplicationArgs

data class ApplicationArgs(val confidential: Output<Boolean>? = null, val name: Output<String>? = null, val redirectUrl: Output<String>? = null, val scopes: Output<List<String>>? = null) : ConvertibleToJava<ApplicationArgs>

The gitlab.Application resource allows to manage the lifecycle of applications in gitlab.

In order to use a user for a user to create an application, they must have admin privileges at the instance level. To create an OIDC application, a scope of "openid". Upstream API: GitLab REST API docs

Example Usage

package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gitlab.Application;
import com.pulumi.gitlab.ApplicationArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var oidc = new Application("oidc", ApplicationArgs.builder()
.confidential(true)
.redirectUrl("https://mycompany.com")
.scopes("openid")
.build());
}
}

Import

Gitlab applications can be imported with their id, e.g.

$ pulumi import gitlab:index/application:Application example "1"

NOTEthe secret and scopes cannot be imported

Constructors

Link copied to clipboard
constructor(confidential: Output<Boolean>? = null, name: Output<String>? = null, redirectUrl: Output<String>? = null, scopes: Output<List<String>>? = null)

Properties

Link copied to clipboard
val confidential: Output<Boolean>? = null

The application is used where the client secret can be kept confidential. Native mobile apps and Single Page Apps are considered non-confidential. Defaults to true if not supplied

Link copied to clipboard
val name: Output<String>? = null

Name of the application.

Link copied to clipboard
val redirectUrl: Output<String>? = null

The URL gitlab should send the user to after authentication.

Link copied to clipboard
val scopes: Output<List<String>>? = null

Scopes of the application. Use "openid" if you plan to use this as an oidc authentication application. Valid options are: api, read_api, read_user, read_repository, write_repository, read_registry, write_registry, sudo, admin_mode, openid, profile, email. This is only populated when creating a new application. This attribute is not available for imported resources

Functions

Link copied to clipboard
open override fun toJava(): ApplicationArgs