@@ -88,6 +88,10 @@ type Context interface {
8888 // creation.
8989 Authenticate () error
9090
91+ // GetExternalSigners retrieves a list of external JWT signers with their details.
92+ // Returns an error if the operation fails.
93+ GetExternalSigners () ([]* rest_model.ClientExternalJWTSignerDetail , error )
94+
9195 // SetCredentials sets the credentials used to authenticate against the Edge Client API.
9296 SetCredentials (authenticator apis.Credentials )
9397
@@ -107,17 +111,17 @@ type Context interface {
107111 // DialWithOptions performs the same logic as Dial but allows specification of DialOptions.
108112 DialWithOptions (serviceName string , options * DialOptions ) (edge.Conn , error )
109113
110- // DialAddr finds the service for given address and performs a Dial for it.
114+ // DialAddr finds the service for a given address and performs a Dial for it.
111115 DialAddr (network string , addr string ) (edge.Conn , error )
112116
113117 // Listen attempts to host a service by the given service name; authenticating as necessary in order to obtain
114118 // a service session, attach to Edge Routers, and bind (host) the service.
115119 Listen (serviceName string ) (edge.Listener , error )
116120
117- // ListenWithOptions performs the same logic as Listen, but allows the specification of ListenOptions.
121+ // ListenWithOptions performs the same logic as Listen but allows the specification of ListenOptions.
118122 ListenWithOptions (serviceName string , options * ListenOptions ) (edge.Listener , error )
119123
120- // GetServiceId will return the id of a specific service by service name. If not found, false, will be returned
124+ // GetServiceId will return the id of a specific service by service name. If not found, false will be returned
121125 // with an empty string.
122126 GetServiceId (serviceName string ) (string , bool , error )
123127
@@ -128,15 +132,15 @@ type Context interface {
128132 // GetService will return the service details of a specific service by service name.
129133 GetService (serviceName string ) (* rest_model.ServiceDetail , bool )
130134
131- // GetServiceForAddr finds the service with intercept that matches best to given address
135+ // GetServiceForAddr finds the service with intercept that matches best to the given address
132136 GetServiceForAddr (network , hostname string , port uint16 ) (* rest_model.ServiceDetail , int , error )
133137
134138 // RefreshServices forces the context to refresh the list of services the current authenticating identity has access
135139 // to.
136140 RefreshServices () error
137141
138142 // RefreshService forces the context to refresh just the service with the given name. If the given service isn't
139- // found, a nil will be returned
143+ // found, nil will be returned
140144 RefreshService (serviceName string ) (* rest_model.ServiceDetail , error )
141145
142146 // GetServiceTerminators will return a slice of rest_model.TerminatorClientDetail for a specific service name.
@@ -668,6 +672,11 @@ func (context *ContextImpl) refreshSessions() {
668672 }
669673}
670674
675+ func (context * ContextImpl ) GetExternalSigners () ([]* rest_model.ClientExternalJWTSignerDetail , error ) {
676+ result , err := context .CtrlClt .GetExternalSigners ()
677+ return result , err
678+ }
679+
671680func (context * ContextImpl ) RefreshServices () error {
672681 return context .refreshServices (true , false )
673682}
0 commit comments