connector: Connectors without a RefreshConnector should not return a refresh token instead of erroring

This commit is contained in:
rithu john
2017-03-23 14:06:30 -07:00
parent b112aa2ecd
commit 59502850f0
3 changed files with 20 additions and 6 deletions

View File

@@ -241,12 +241,6 @@ type provider struct {
func (p *provider) POSTData(s connector.Scopes, id string) (action, value string, err error) {
// NOTE(ericchiang): If we can't follow up with the identity provider, can we
// support refresh tokens?
if s.OfflineAccess {
return "", "", fmt.Errorf("SAML does not support offline access")
}
r := &authnRequest{
ProtocolBinding: bindingPOST,
ID: id,