Skip to content

Commit

Permalink
updating interface definition of spi
Browse files Browse the repository at this point in the history
  • Loading branch information
alekh2 committed Jan 28, 2025
1 parent a9cb298 commit 9391259
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 10 deletions.
1 change: 0 additions & 1 deletion spi/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ dependencies {
api(project(':entities'))
api("io.vertx:vertx-core:$vertx_version")
api('com.fasterxml.jackson.core:jackson-databind')
api("io.vertx:vertx-web:$vertx_version")

testFixturesImplementation("com.google.guava:guava:$guava_version")
}

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
package com.flipkart.varadhi.spi.authn;

import com.flipkart.varadhi.spi.ConfigFile;

public class AuthenticationOptions {
private String providerClassName;

@ConfigFile
private String configFile;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
package com.flipkart.varadhi.spi.authn;

import com.flipkart.varadhi.entities.auth.UserContext;
import io.vertx.core.Future;

import java.net.URI;
import java.util.Map;

public interface VaradhiAuthenticationProvider {
Future<Boolean> init(AuthenticationOptions authenticationOptions);
Future<UserContext> handle(URI uri, Map<String,String> params, Map<String,String> headers, Map<String, Object> context);
}
1 change: 0 additions & 1 deletion spi/src/main/java/module-info.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
requires com.flipkart.varadhi.entities;
requires jakarta.validation;
requires io.vertx.core;
requires io.vertx.web;

exports com.flipkart.varadhi.spi.services;
exports com.flipkart.varadhi.spi.db;
Expand Down

0 comments on commit 9391259

Please sign in to comment.