mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-03-11 21:11:48 +01:00
JWT auth plugin and updates
This commit is contained in:
@@ -2,7 +2,9 @@ import { PluginDefinition } from '@yaakapp/api';
|
||||
|
||||
export const plugin: PluginDefinition = {
|
||||
authentication: {
|
||||
name: 'Basic',
|
||||
name: 'basic',
|
||||
label: 'Basic Auth',
|
||||
shortLabel: 'Basic',
|
||||
config: [{
|
||||
type: 'text',
|
||||
name: 'username',
|
||||
@@ -13,6 +15,7 @@ export const plugin: PluginDefinition = {
|
||||
name: 'password',
|
||||
label: 'Password',
|
||||
optional: true,
|
||||
password: true,
|
||||
}],
|
||||
async onApply(_ctx: any, args: any): Promise<any> {
|
||||
const { username, password } = args.config;
|
||||
|
||||
Reference in New Issue
Block a user