Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 232 for auth (0.16 sec)

  1. cmd/auth-handler.go

    		return authTypeAnonymous
    	}
    	return authTypeUnknown
    }
    
    func validateAdminSignature(ctx context.Context, r *http.Request, region string) (auth.Credentials, bool, APIErrorCode) {
    	var cred auth.Credentials
    	var owner bool
    	s3Err := ErrAccessDenied
    	if _, ok := r.Header[xhttp.AmzContentSha256]; ok &&
    		getRequestAuthType(r) == authTypeSigned {
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 26K bytes
    - Viewed (0)
  2. cmd/auth-handler_test.go

    				Body:   nopCloser,
    			},
    			authT: authTypePostPolicy,
    		},
    	}
    
    	// .. Tests all request auth type.
    	for i, testc := range testCases {
    		authT := getRequestAuthType(testc.req)
    		if authT != testc.authT {
    			t.Errorf("Test %d: Expected %d, got %d", i+1, testc.authT, authT)
    		}
    	}
    }
    
    // Test all s3 supported auth types.
    func TestS3SupportedAuthType(t *testing.T) {
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Feb 22 06:26:06 GMT 2024
    - 15.4K bytes
    - Viewed (0)
  3. cmd/iam.go

    	if !sys.Initialized() {
    		return auth.Credentials{}, time.Time{}, errServerNotInitialized
    	}
    
    	if parentUser == "" {
    		return auth.Credentials{}, time.Time{}, errInvalidArgument
    	}
    
    	if len(opts.accessKey) > 0 && len(opts.secretKey) == 0 {
    		return auth.Credentials{}, time.Time{}, auth.ErrNoSecretKeyWithAccessKey
    	}
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 25 21:28:16 GMT 2024
    - 71.1K bytes
    - Viewed (1)
  4. cmd/admin-handler-utils.go

    	// Get current object layer instance.
    	objectAPI := newObjectLayerFn()
    	if objectAPI == nil || globalNotificationSys == nil {
    		writeErrorResponseJSON(ctx, w, errorCodes.ToAPIErr(ErrServerNotInitialized), r.URL)
    		return nil, auth.Credentials{}
    	}
    
    	for _, action := range actions {
    		// Validate request signature.
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Fri Mar 01 21:09:42 GMT 2024
    - 8.2K bytes
    - Viewed (0)
  5. internal/config/identity/openid/jwt.go

    import (
    	"context"
    	"encoding/json"
    	"errors"
    	"fmt"
    	"io"
    	"net/http"
    	"sync"
    	"time"
    
    	jwtgo "github.com/golang-jwt/jwt/v4"
    	"github.com/minio/minio/internal/arn"
    	"github.com/minio/minio/internal/auth"
    	xnet "github.com/minio/pkg/v2/net"
    	"github.com/minio/pkg/v2/policy"
    )
    
    type publicKeys struct {
    	*sync.RWMutex
    
    	// map of kid to public key
    	pkMap map[string]interface{}
    }
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Nov 16 04:42:31 GMT 2023
    - 8.3K bytes
    - Viewed (5)
  6. cmd/signature-v4-utils.go

    func checkKeyValid(r *http.Request, accessKey string) (auth.Credentials, bool, APIErrorCode) {
    	cred := globalActiveCred
    	if cred.AccessKey != accessKey {
    		if !globalIAMSys.Initialized() {
    			// Check if server has initialized, then only proceed
    			// to check for IAM users otherwise its okay for clients
    			// to retry with 503 errors when server is coming up.
    			return auth.Credentials{}, false, ErrServerNotInitialized
    		}
    
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Wed Jan 31 18:56:45 GMT 2024
    - 9K bytes
    - Viewed (0)
  7. internal/logger/config.go

    const (
    	Endpoint   = "endpoint"
    	AuthToken  = "auth_token"
    	ClientCert = "client_cert"
    	ClientKey  = "client_key"
    	BatchSize  = "batch_size"
    	QueueSize  = "queue_size"
    	QueueDir   = "queue_dir"
    	Proxy      = "proxy"
    
    	KafkaBrokers       = "brokers"
    	KafkaTopic         = "topic"
    	KafkaTLS           = "tls"
    	KafkaTLSSkipVerify = "tls_skip_verify"
    	KafkaTLSClientAuth = "tls_client_auth"
    	KafkaSASL          = "sasl"
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Apr 04 12:04:40 GMT 2024
    - 15.8K bytes
    - Viewed (0)
  8. docs/sts/web-identity.md

    at the URL `https://minio-node-1.example.org`, the redirect URL will be `https://minio-node-1.example.org/oauth_callback` and all is well.
    
    For deployments with a load-balancer (LB), it is required that the LB is configured to send requests from the same user/client-app to the same backend MinIO server (at least for the initial login request and subsequent redirection, as the OpenID auth flow's state parameter is currently local to the MinIO server). For this setup, set the `MINIO_BROWSER_REDIRECT_URL`...
    Plain Text
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Jan 18 07:03:17 GMT 2024
    - 19.2K bytes
    - Viewed (1)
  9. internal/config/identity/openid/openid.go

    		expirySecs, err := strconv.ParseInt(dsecs, 10, 64)
    		if err != nil {
    			return 0, auth.ErrInvalidDuration
    		}
    
    		// The duration, in seconds, of the role session.
    		// The value can range from 900 seconds (15 minutes)
    		// up to 365 days.
    		if expirySecs < config.MinExpiration || expirySecs > config.MaxExpiration {
    			return 0, auth.ErrInvalidDuration
    		}
    
    		defaultExpiryDuration = time.Duration(expirySecs) * time.Second
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Thu Nov 16 04:42:31 GMT 2023
    - 16.5K bytes
    - Viewed (0)
  10. internal/event/target/kafka.go

    	KafkaTopic            = "topic"
    	KafkaQueueDir         = "queue_dir"
    	KafkaQueueLimit       = "queue_limit"
    	KafkaTLS              = "tls"
    	KafkaTLSSkipVerify    = "tls_skip_verify"
    	KafkaTLSClientAuth    = "tls_client_auth"
    	KafkaSASL             = "sasl"
    	KafkaSASLUsername     = "sasl_username"
    	KafkaSASLPassword     = "sasl_password"
    	KafkaSASLMechanism    = "sasl_mechanism"
    	KafkaClientTLSCert    = "client_tls_cert"
    Go
    - Registered: Sun May 05 19:28:20 GMT 2024
    - Last Modified: Tue Feb 20 08:16:35 GMT 2024
    - 13K bytes
    - Viewed (0)
Back to top