-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
41 changed files
with
451 additions
and
270 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 10 additions & 1 deletion
11
api/src/main/scala/app/softnetwork/account/api/BasicAccountEndpointsPostgresLauncher.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,25 @@ | ||
package app.softnetwork.account.api | ||
|
||
import akka.actor.typed.ActorSystem | ||
import app.softnetwork.persistence.jdbc.schema.{JdbcSchemaProvider, JdbcSchemaTypes} | ||
import app.softnetwork.persistence.schema.SchemaType | ||
import app.softnetwork.session.CsrfCheckHeader | ||
import app.softnetwork.session.handlers.SessionRefreshTokenDao | ||
import app.softnetwork.session.model.SessionDataCompanion | ||
import com.softwaremill.session.RefreshTokenStorage | ||
import org.slf4j.{Logger, LoggerFactory} | ||
import org.softnetwork.session.model.Session | ||
|
||
object BasicAccountEndpointsPostgresLauncher | ||
extends BasicAccountEndpointsApi | ||
extends BasicAccountEndpointsApi[Session] | ||
with JdbcSchemaProvider | ||
with CsrfCheckHeader { | ||
lazy val log: Logger = LoggerFactory getLogger getClass.getName | ||
|
||
override def schemaType: SchemaType = JdbcSchemaTypes.Postgres | ||
|
||
override implicit def companion: SessionDataCompanion[Session] = Session | ||
|
||
override protected def refreshTokenStorage: ActorSystem[_] => RefreshTokenStorage[Session] = | ||
sys => SessionRefreshTokenDao(sys) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 10 additions & 1 deletion
11
api/src/main/scala/app/softnetwork/account/api/BasicAccountRoutesPostgresLauncher.scala
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,25 @@ | ||
package app.softnetwork.account.api | ||
|
||
import akka.actor.typed.ActorSystem | ||
import app.softnetwork.persistence.jdbc.schema.{JdbcSchemaProvider, JdbcSchemaTypes} | ||
import app.softnetwork.persistence.schema.SchemaType | ||
import app.softnetwork.session.CsrfCheckHeader | ||
import app.softnetwork.session.handlers.SessionRefreshTokenDao | ||
import app.softnetwork.session.model.SessionDataCompanion | ||
import com.softwaremill.session.RefreshTokenStorage | ||
import org.slf4j.{Logger, LoggerFactory} | ||
import org.softnetwork.session.model.Session | ||
|
||
object BasicAccountRoutesPostgresLauncher | ||
extends BasicAccountRoutesApi | ||
extends BasicAccountRoutesApi[Session] | ||
with JdbcSchemaProvider | ||
with CsrfCheckHeader { | ||
lazy val log: Logger = LoggerFactory getLogger getClass.getName | ||
|
||
override def schemaType: SchemaType = JdbcSchemaTypes.Postgres | ||
|
||
override implicit def companion: SessionDataCompanion[Session] = Session | ||
|
||
override protected def refreshTokenStorage: ActorSystem[_] => RefreshTokenStorage[Session] = | ||
sys => SessionRefreshTokenDao(sys) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.