()
| 41 | } |
| 42 | |
| 43 | func currentPluginAuthParser() PluginAuthParser { |
| 44 | value := pluginAuthParserValue.Load() |
| 45 | if value == nil { |
| 46 | return nil |
| 47 | } |
| 48 | holder, ok := value.(pluginAuthParserHolder) |
| 49 | if !ok { |
| 50 | return nil |
| 51 | } |
| 52 | return holder.parser |
| 53 | } |
| 54 | |
| 55 | // FileTokenStore persists token records and auth metadata using the filesystem as backing storage. |
| 56 | type FileTokenStore struct { |